accommodate longer language names in menu

This commit is contained in:
Hannes Mannerheim 2016-03-12 16:27:32 +01:00
parent 220d54f199
commit 3f1702e73e
2 changed files with 6 additions and 4 deletions

View File

@ -496,7 +496,7 @@ class QvitterAction extends ApiAction
// languages // languages
foreach($languagecodesandnames as $lancode=>$lan) { foreach($languagecodesandnames as $lancode=>$lan) {
print '<li class="language"><a class="language-link" title="'.$lan['english_name'].'" data-lang-code="'.$lancode.'">'.$lan['name'].'</a></li>'; print '<li class="language"><a class="language-link" title="'.$lan['name'].' '.$lan['english_name'].'" data-lang-code="'.$lancode.'">'.$lan['name'].'</a></li>';
} }
?> ?>
@ -530,7 +530,7 @@ class QvitterAction extends ApiAction
// languages // languages
foreach($languagecodesandnames as $lancode=>$lan) { foreach($languagecodesandnames as $lancode=>$lan) {
print '<li><a class="language-link" title="'.$lan['english_name'].'" data-lang-code="'.$lancode.'">'.$lan['name'].'</a></li>'; print '<li><a class="language-link" title="'.$lan['name'].' '.$lan['english_name'].'" data-lang-code="'.$lancode.'">'.$lan['name'].'</a></li>';
} }
?> ?>

View File

@ -505,11 +505,13 @@ body.rtl .dropdown-menu li:not(.dropdown-caret) {
font-size: 12px; font-size: 12px;
font-weight: normal; font-weight: normal;
line-height: 18px; line-height: 18px;
padding: 3px 15px 3px 22px; overflow: hidden;
padding: 3px 0 3px 22px;
position: relative; position: relative;
text-decoration: none;
text-overflow: ellipsis;
text-shadow: none; text-shadow: none;
white-space: nowrap; white-space: nowrap;
text-decoration: none;
} }
body.rtl .dropdown-menu li:not(.dropdown-caret) a { body.rtl .dropdown-menu li:not(.dropdown-caret) a {
padding: 3px 22px 3px 15px; padding: 3px 22px 3px 15px;