diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/window.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/window.c b/src/ui/window.c index 0f289ff4..4e89df37 100644 --- a/src/ui/window.c +++ b/src/ui/window.c | |||
@@ -488,6 +488,7 @@ static void updatePadding_Window_(iWindow *d) { | |||
488 | setPadding_Widget(toolBar, left, 0, right, bottom); | 488 | setPadding_Widget(toolBar, left, 0, right, bottom); |
489 | } | 489 | } |
490 | } | 490 | } |
491 | /* Note that `handleNavBarCommands_` also adjusts padding and spacing. */ | ||
491 | #endif | 492 | #endif |
492 | } | 493 | } |
493 | 494 | ||
@@ -547,7 +548,8 @@ static iBool handleNavBarCommands_(iWidget *navBar, const char *cmd) { | |||
547 | const iBool isPhone = deviceType_App() == phone_AppDeviceType; | 548 | const iBool isPhone = deviceType_App() == phone_AppDeviceType; |
548 | const iBool isNarrow = !isPhone && isNarrow_Window(get_Window()); | 549 | const iBool isNarrow = !isPhone && isNarrow_Window(get_Window()); |
549 | /* Adjust navbar padding. */ { | 550 | /* Adjust navbar padding. */ { |
550 | int hPad = isPhone || isNarrow ? gap_UI / 2 : gap_UI * 3 / 2; | 551 | int hPad = isPhone && isPortrait_App() ? 0 : (isPhone || isNarrow) ? gap_UI / 2 |
552 | : gap_UI * 3 / 2; | ||
551 | int vPad = gap_UI * 3 / 2; | 553 | int vPad = gap_UI * 3 / 2; |
552 | int topPad = !findWidget_App("winbar") ? gap_UI / 2 : 0; | 554 | int topPad = !findWidget_App("winbar") ? gap_UI / 2 : 0; |
553 | setPadding_Widget(navBar, hPad, vPad / 3 + topPad, hPad, vPad / 2); | 555 | setPadding_Widget(navBar, hPad, vPad / 3 + topPad, hPad, vPad / 2); |