summaryrefslogtreecommitdiff
path: root/src/ui/inputwidget.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2022-01-05 15:09:06 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2022-01-05 15:09:06 +0200
commit6d1a21966a6819698f29b3fb0136af13ef929e6e (patch)
treea36431fdd33965e4f2f5f9ca7bccb1fa46b89ca9 /src/ui/inputwidget.c
parent3293d2fb2e4f92e3c0ebc3f2a6cf0acd2e9543cf (diff)
Mobile: URL field padding on tablets
Diffstat (limited to 'src/ui/inputwidget.c')
-rw-r--r--src/ui/inputwidget.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/inputwidget.c b/src/ui/inputwidget.c
index 7ceb59c1..9261da0c 100644
--- a/src/ui/inputwidget.c
+++ b/src/ui/inputwidget.c
@@ -266,9 +266,9 @@ struct Impl_InputWidget {
266iDefineObjectConstructionArgs(InputWidget, (size_t maxLen), maxLen) 266iDefineObjectConstructionArgs(InputWidget, (size_t maxLen), maxLen)
267 267
268static int extraPaddingHeight_InputWidget_(const iInputWidget *d) { 268static int extraPaddingHeight_InputWidget_(const iInputWidget *d) {
269 if (isPortraitPhone_App() && !cmp_String(id_Widget(&d->widget), "url")) { 269 if ((isPortraitPhone_App() || deviceType_App() == tablet_AppDeviceType) &&
270 /* Special case: the URL input field gets taller in portrait phone mode to make 270 !cmp_String(id_Widget(&d->widget), "url")) {
271 the tap target more generous. */ 271 /* Make the tap target more generous. */
272 return 2.5f * gap_UI; 272 return 2.5f * gap_UI;
273 } 273 }
274 return 1.25f * gap_UI; 274 return 1.25f * gap_UI;