Update: fix dropdown text wrap
This commit is contained in:
parent
34e2128a39
commit
0f43723250
2 changed files with 23 additions and 9 deletions
|
@ -111,9 +111,14 @@
|
|||
margin-right: 4px;
|
||||
display: inline-flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
text-decoration: none;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.dropdown-item .icon-text {
|
||||
text-wrap: wrap;
|
||||
word-break: break-word;
|
||||
width: 80%;
|
||||
}
|
||||
|
||||
span.icon-text::after {
|
||||
|
@ -263,3 +268,12 @@ color: var(--md-sys-color-on-surface-variant);
|
|||
color: var(--md-nav-on-section-color-advance);
|
||||
background-color: var(--md-nav-section-color-advance);
|
||||
}
|
||||
|
||||
/* Dropdown min-width */
|
||||
.dropdown-mw-28 {
|
||||
min-width: 280px;
|
||||
}
|
||||
|
||||
.dropdown-mw-20 {
|
||||
min-width: 200px;
|
||||
}
|
|
@ -293,7 +293,7 @@
|
|||
star
|
||||
</span>
|
||||
</a>
|
||||
<div class="dropdown-menu px-xl-2 px-2" id="favoritesDropdown" aria-labelledby="navbarDropdown-5">
|
||||
<div class="dropdown-menu dropdown-mw-28 px-xl-2 px-2" id="favoritesDropdown" aria-labelledby="navbarDropdown-5">
|
||||
<!-- Dropdown items will be added here by JavaScript -->
|
||||
</div>
|
||||
</li>
|
||||
|
@ -312,7 +312,7 @@
|
|||
</span>
|
||||
</a>
|
||||
<div class="dropdown-menu px-xl-2 px-2" aria-labelledby="languageDropdown">
|
||||
<div class="scrollable-y">
|
||||
<div class="scrollable-y dropdown-mw-20">
|
||||
<th:block th:insert="~{fragments/languages :: langs}"></th:block>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue