Skip to content

Commit 8a9b7fb

Browse files
authored
Product Selector: Fix overflowing title (#415)
1 parent a2a48c8 commit 8a9b7fb

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

assets/css/v2/style.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -802,6 +802,9 @@ ol li:last-child {
802802

803803
.product-selector__toggle-text {
804804
font-weight: 500;
805+
overflow: hidden;
806+
text-overflow: ellipsis;
807+
white-space: nowrap;
805808
}
806809

807810
.product-selector__chevron {

layouts/partials/sidebar-v2.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<details class="product-selector__section">
4141
<summary class="product-selector__toggle">
4242

43-
<span class="product-selector__toggle-text">
43+
<span class="product-selector__toggle-text" title="{{ if $currentProductTitle }}{{ $currentProductTitle }}{{else}}Product Documentation{{end}}">
4444
{{ if $currentProductTitle }}
4545
{{ $currentProductTitle }}
4646
{{ else }}

0 commit comments

Comments
 (0)