Centre the phone Omnibar when no language picker sits beside it

On a phone the field kept 60px on its right for the language picker even
where the application shows none, so it sat left of centre. It now keeps
16px either side, and leaves the picker its room only while it is there.
This commit is contained in:
Sameh Khamis committed 2026-11-19 16:56:10 -08:00
1 parent 9d5e10ddb1
commit ff7b8e68c5
1 file changed
+5 -1
+5 -1
View File
@@ -1347,10 +1347,14 @@ small {
calc(var(--mobile-sheet-cover, 0px) + 6px)
);
left: auto;
inset-inline: 16px 60px;
inset-inline: 16px;
width: auto;
transform: none;
}
/* The language picker sits at the right edge beside the field; the field leaves it room. */
:global(body.mobile-shell:has(#locale-picker) #gev-omnibar) {
inset-inline: 16px 60px;
}
/* A lifted timeline leaves less map above the credits on short phones. */
@media (max-height: 480px) {
:global(body.mobile-shell:has(#world-timeline) #gev-omnibar) {