Skip to content

Commit

Permalink
Fix long texts.
Browse files Browse the repository at this point in the history
  • Loading branch information
EreMaijala committed Aug 23, 2023
1 parent 07e831f commit fc69223
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 8 deletions.
2 changes: 1 addition & 1 deletion themes/bootprint3/css/compiled.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion themes/bootstrap3/css/compiled.css

Large diffs are not rendered by default.

22 changes: 21 additions & 1 deletion themes/bootstrap3/less/components/sidebar.less
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@
color: #fff;
background-color: #000;
}
.facet .text {
overflow: hidden;
}

.top-facets-contents {
margin: 2px 0;
Expand Down Expand Up @@ -193,12 +196,29 @@ h3.facet-title {
align-items: baseline;

.facet-tree__item-container {
flex-grow: 1;
flex: 1;
max-width: calc(100% - 1.5em);

.text {
width: calc(100% - 1.5em);
}

&--exclude .text {
width: calc(100% - 3.0em);
}

.icon-link__label {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
display: inline;
}
}

.facet-tree__icon-container {
padding: 0.5rem;
width: 1.5rem;
min-width: 1.5rem;
line-height: 1.5rem;
}
}
Expand Down
22 changes: 21 additions & 1 deletion themes/bootstrap3/scss/components/sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@
color: #fff;
background-color: #000;
}
.facet .text {
overflow: hidden;
}

.top-facets-contents {
margin: 2px 0;
Expand Down Expand Up @@ -193,12 +196,29 @@ h3.facet-title {
align-items: baseline;

.facet-tree__item-container {
flex-grow: 1;
flex: 1;
max-width: calc(100% - 1.5em);

.text {
width: calc(100% - 1.5em);
}

&--exclude .text {
width: calc(100% - 3.0em);
}

.icon-link__label {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
display: inline;
}
}

.facet-tree__icon-container {
padding: 0.5rem;
width: 1.5rem;
min-width: 1.5rem;
line-height: 1.5rem;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<?=$this->icon('facet-opened', 'facet-tree__opened')?>
<?=$this->icon('facet-closed', 'facet-tree__closed')?>
</span>
<span class="facet-tree__item-container">
<span class="facet-tree__item-container<?=$this->allowExclude ? ' facet-tree__item-container--exclude' : ''?>">
<?=$renderedEntryHtml?>
</span>
</summary>
Expand All @@ -36,7 +36,7 @@
<span class="facet-tree__icon-container">
<?=$this->icon('facet-noncollapsible', 'noncollapsible')?>
</span>
<span class="facet-tree__item-container">
<span class="facet-tree__item-container<?=$this->allowExclude ? ' facet-tree__item-container--exclude' : ''?>">
<?=$renderedEntryHtml?>
</span>
</div>
Expand Down
2 changes: 1 addition & 1 deletion themes/local_theme_example/css/compiled.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion themes/sandal/css/compiled.css

Large diffs are not rendered by default.

0 comments on commit fc69223

Please sign in to comment.