Skip to content

Commit

Permalink
fix (bug): Display issues in language switcher (#2167)
Browse files Browse the repository at this point in the history
* fix (bug): Display issues in language switcher

- Gave more width to the switcher on mobile.
- Fixed "Help Translate" overlaping
- Show language name if it fits or show ellipseses... to differentiate between English and English (United Kingdom), etc.

Closes: Displaying bugs of the unfolding language switcher #2158

* Add fixes to style-rtl.css
  • Loading branch information
meel-hd authored Sep 23, 2024
1 parent 80132e0 commit 0a7d4cb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
9 changes: 8 additions & 1 deletion weblate_web/static/style-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -3451,6 +3451,9 @@ footer .footicons a.icon:hover {
display: block;
padding: 0 15px;
border-radius: 15px;
overflow: hidden;
text-wrap: nowrap;
text-overflow: ellipsis;
}

.langs ul li.active a {
Expand Down Expand Up @@ -4106,7 +4109,11 @@ input.fullwidth {
}

.langs-list {
min-width: calc(100vw - 90px);
min-width: calc(100vw - 20px);
}

.langs-list .bottom {
margin-top: 0;
}

section.donations-info.aboutus .di-section .half-content {
Expand Down
10 changes: 8 additions & 2 deletions weblate_web/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3451,6 +3451,9 @@ footer .footicons a.icon:hover {
display: block;
padding: 0 15px;
border-radius: 15px;
overflow: hidden;
text-wrap: nowrap;
text-overflow: ellipsis;
}

.langs ul li.active a {
Expand Down Expand Up @@ -4098,7 +4101,7 @@ input.fullwidth {
}

.langs-list {
min-width: calc(100vw - 90px);
min-width: calc(100vw - 20px);
}

section.donations-info.aboutus .di-section .half-content {
Expand Down Expand Up @@ -4143,10 +4146,13 @@ input.fullwidth {
font-size: 12px !important;
height: 25px;
line-height: 25px;
overflow: hidden;
padding: 0 11px;
}

.langs-list .bottom {
margin-top: 0;
}

.langs-list .bottom a {
font-size: 12px;
}
Expand Down

0 comments on commit 0a7d4cb

Please sign in to comment.