diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-12-10 10:06:59 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-12-10 10:06:59 +0200 |
commit | 467498b549254041bde827b4a96fa4a1f2272764 (patch) | |
tree | f93cff0f23178155aba9f40eabe013346bc35f92 | |
parent | 680b72de4185527baea76ee8ce3cc4c2145069a5 (diff) |
Cleanup
-rw-r--r-- | src/ui/mobile.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/mobile.c b/src/ui/mobile.c index 9bb55132..bf3eb425 100644 --- a/src/ui/mobile.c +++ b/src/ui/mobile.c | |||
@@ -41,12 +41,12 @@ iBool isUsingPanelLayout_Mobile(void) { | |||
41 | return deviceType_App() != desktop_AppDeviceType; | 41 | return deviceType_App() != desktop_AppDeviceType; |
42 | } | 42 | } |
43 | 43 | ||
44 | #define sidebarMinWidth_Mobile (80 * gap_UI) | 44 | #define topPanelMinWidth_Mobile (80 * gap_UI) |
45 | 45 | ||
46 | static iBool isSideBySideLayout_(void) { | 46 | static iBool isSideBySideLayout_(void) { |
47 | /* Minimum is an even split. */ | 47 | /* Minimum is an even split. */ |
48 | const int safeWidth = safeRect_Root(get_Root()).size.x; | 48 | const int safeWidth = safeRect_Root(get_Root()).size.x; |
49 | if (safeWidth / 2 < sidebarMinWidth_Mobile) { | 49 | if (safeWidth / 2 < topPanelMinWidth_Mobile) { |
50 | return iFalse; | 50 | return iFalse; |
51 | } | 51 | } |
52 | if (deviceType_App() == phone_AppDeviceType) { | 52 | if (deviceType_App() == phone_AppDeviceType) { |
@@ -136,7 +136,7 @@ static iBool mainDetailSplitHandler_(iWidget *mainDetailSplit, const char *cmd) | |||
136 | const int pad = isPortrait ? 0 : 3 * gap_UI; | 136 | const int pad = isPortrait ? 0 : 3 * gap_UI; |
137 | if (isSideBySide) { | 137 | if (isSideBySide) { |
138 | iAssert(topPanel); | 138 | iAssert(topPanel); |
139 | topPanel->rect.size.x = iMax(sidebarMinWidth_Mobile, | 139 | topPanel->rect.size.x = iMax(topPanelMinWidth_Mobile, |
140 | (deviceType_App() == phone_AppDeviceType ? | 140 | (deviceType_App() == phone_AppDeviceType ? |
141 | safeRoot.size.x * 2 / 5 : safeRoot.size.x / 3)); | 141 | safeRoot.size.x * 2 / 5 : safeRoot.size.x / 3)); |
142 | } | 142 | } |