diff --git a/CHANGELOG.md b/CHANGELOG.md index e06eb8a..747373c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ - fix: Disable terminal keyboard while unl0kr is running - feat: Extend --geometry flag to also accept display offsets - fix: Swap order of KDSKBMODE and KDSETMODE to prevent blank screen (#34) +- fix: Increase maximum textarea width to prevent clipping on OnePlus 6 (#33) ## 0.2.0 (2022-05-27) diff --git a/main.c b/main.c index ed9c3e3..1348df6 100644 --- a/main.c +++ b/main.c @@ -434,6 +434,7 @@ int main(int argc, char *argv[]) { const int keyboard_height = ver_res > hor_res ? ver_res / 3 : ver_res / 2; const int padding = keyboard_height / 8; const int label_width = hor_res - 2 * padding; + const int textarea_container_max_width = LV_MIN(hor_res, ver_res); /* Main flexbox */ lv_obj_t *container = lv_obj_create(lv_scr_act()); @@ -512,7 +513,7 @@ int main(int argc, char *argv[]) { /* Textarea flexbox */ lv_obj_t *textarea_container = lv_obj_create(container); lv_obj_set_size(textarea_container, LV_PCT(100), LV_SIZE_CONTENT); - lv_obj_set_style_max_width(textarea_container, 512, LV_PART_MAIN); + lv_obj_set_style_max_width(textarea_container, textarea_container_max_width, LV_PART_MAIN); lv_obj_set_flex_flow(textarea_container, LV_FLEX_FLOW_ROW); lv_obj_set_flex_align(textarea_container, LV_FLEX_ALIGN_CENTER, LV_FLEX_ALIGN_CENTER, LV_FLEX_ALIGN_CENTER); lv_obj_set_style_pad_left(textarea_container, padding, LV_PART_MAIN); diff --git a/screenshots/breezy-dark-1024x768.png b/screenshots/breezy-dark-1024x768.png index cf048d2..81acc35 100644 Binary files a/screenshots/breezy-dark-1024x768.png and b/screenshots/breezy-dark-1024x768.png differ diff --git a/screenshots/breezy-dark-1280x800.png b/screenshots/breezy-dark-1280x800.png index 77bf450..1dedb1c 100644 Binary files a/screenshots/breezy-dark-1280x800.png and b/screenshots/breezy-dark-1280x800.png differ diff --git a/screenshots/breezy-dark-1440x720.png b/screenshots/breezy-dark-1440x720.png index 0af3393..c963c51 100644 Binary files a/screenshots/breezy-dark-1440x720.png and b/screenshots/breezy-dark-1440x720.png differ diff --git a/screenshots/breezy-dark-1920x1080.png b/screenshots/breezy-dark-1920x1080.png index 85fdd1a..11b4c4f 100644 Binary files a/screenshots/breezy-dark-1920x1080.png and b/screenshots/breezy-dark-1920x1080.png differ diff --git a/screenshots/breezy-dark-480x800.png b/screenshots/breezy-dark-480x800.png index 75f9795..2761474 100644 Binary files a/screenshots/breezy-dark-480x800.png and b/screenshots/breezy-dark-480x800.png differ diff --git a/screenshots/breezy-dark-540x960.png b/screenshots/breezy-dark-540x960.png index 3b1b810..6d654d0 100644 Binary files a/screenshots/breezy-dark-540x960.png and b/screenshots/breezy-dark-540x960.png differ diff --git a/screenshots/breezy-dark-768x1024.png b/screenshots/breezy-dark-768x1024.png index eb893ee..1ea40ce 100644 Binary files a/screenshots/breezy-dark-768x1024.png and b/screenshots/breezy-dark-768x1024.png differ diff --git a/screenshots/breezy-dark-800x480.png b/screenshots/breezy-dark-800x480.png index 03ef17c..22eea5b 100644 Binary files a/screenshots/breezy-dark-800x480.png and b/screenshots/breezy-dark-800x480.png differ diff --git a/screenshots/breezy-dark-960x540.png b/screenshots/breezy-dark-960x540.png index 9991738..55d0808 100644 Binary files a/screenshots/breezy-dark-960x540.png and b/screenshots/breezy-dark-960x540.png differ diff --git a/screenshots/breezy-light-1024x768.png b/screenshots/breezy-light-1024x768.png index 5ca928b..2ec1913 100644 Binary files a/screenshots/breezy-light-1024x768.png and b/screenshots/breezy-light-1024x768.png differ diff --git a/screenshots/breezy-light-1280x800.png b/screenshots/breezy-light-1280x800.png index 6e0636c..2b7ac59 100644 Binary files a/screenshots/breezy-light-1280x800.png and b/screenshots/breezy-light-1280x800.png differ diff --git a/screenshots/breezy-light-1440x720.png b/screenshots/breezy-light-1440x720.png index c21f482..23aaa25 100644 Binary files a/screenshots/breezy-light-1440x720.png and b/screenshots/breezy-light-1440x720.png differ diff --git a/screenshots/breezy-light-1920x1080.png b/screenshots/breezy-light-1920x1080.png index a8dfe76..ff10009 100644 Binary files a/screenshots/breezy-light-1920x1080.png and b/screenshots/breezy-light-1920x1080.png differ diff --git a/screenshots/breezy-light-480x800.png b/screenshots/breezy-light-480x800.png index 3af98fc..4e37bbb 100644 Binary files a/screenshots/breezy-light-480x800.png and b/screenshots/breezy-light-480x800.png differ diff --git a/screenshots/breezy-light-540x960.png b/screenshots/breezy-light-540x960.png index 200a82f..757b85b 100644 Binary files a/screenshots/breezy-light-540x960.png and b/screenshots/breezy-light-540x960.png differ diff --git a/screenshots/breezy-light-768x1024.png b/screenshots/breezy-light-768x1024.png index b93e13f..1c4d549 100644 Binary files a/screenshots/breezy-light-768x1024.png and b/screenshots/breezy-light-768x1024.png differ diff --git a/screenshots/breezy-light-800x480.png b/screenshots/breezy-light-800x480.png index 28bc4df..cf9ae6f 100644 Binary files a/screenshots/breezy-light-800x480.png and b/screenshots/breezy-light-800x480.png differ diff --git a/screenshots/breezy-light-960x540.png b/screenshots/breezy-light-960x540.png index 138ca0c..c6978d5 100644 Binary files a/screenshots/breezy-light-960x540.png and b/screenshots/breezy-light-960x540.png differ diff --git a/screenshots/pmos-dark-1024x768.png b/screenshots/pmos-dark-1024x768.png index 76fbe12..8d8f972 100644 Binary files a/screenshots/pmos-dark-1024x768.png and b/screenshots/pmos-dark-1024x768.png differ diff --git a/screenshots/pmos-dark-1280x800.png b/screenshots/pmos-dark-1280x800.png index 7b09523..f39a262 100644 Binary files a/screenshots/pmos-dark-1280x800.png and b/screenshots/pmos-dark-1280x800.png differ diff --git a/screenshots/pmos-dark-1440x720.png b/screenshots/pmos-dark-1440x720.png index 800e315..b05fecd 100644 Binary files a/screenshots/pmos-dark-1440x720.png and b/screenshots/pmos-dark-1440x720.png differ diff --git a/screenshots/pmos-dark-1920x1080.png b/screenshots/pmos-dark-1920x1080.png index 505f010..72e9c5f 100644 Binary files a/screenshots/pmos-dark-1920x1080.png and b/screenshots/pmos-dark-1920x1080.png differ diff --git a/screenshots/pmos-dark-480x800.png b/screenshots/pmos-dark-480x800.png index dfdec63..71c3ee8 100644 Binary files a/screenshots/pmos-dark-480x800.png and b/screenshots/pmos-dark-480x800.png differ diff --git a/screenshots/pmos-dark-540x960.png b/screenshots/pmos-dark-540x960.png index 429eadd..c11db9a 100644 Binary files a/screenshots/pmos-dark-540x960.png and b/screenshots/pmos-dark-540x960.png differ diff --git a/screenshots/pmos-dark-768x1024.png b/screenshots/pmos-dark-768x1024.png index 1656ef8..401fef9 100644 Binary files a/screenshots/pmos-dark-768x1024.png and b/screenshots/pmos-dark-768x1024.png differ diff --git a/screenshots/pmos-dark-800x480.png b/screenshots/pmos-dark-800x480.png index 577fcd6..3e98760 100644 Binary files a/screenshots/pmos-dark-800x480.png and b/screenshots/pmos-dark-800x480.png differ diff --git a/screenshots/pmos-dark-960x540.png b/screenshots/pmos-dark-960x540.png index 2b98360..2966504 100644 Binary files a/screenshots/pmos-dark-960x540.png and b/screenshots/pmos-dark-960x540.png differ diff --git a/screenshots/pmos-light-1024x768.png b/screenshots/pmos-light-1024x768.png index 2ed6648..e4d26f5 100644 Binary files a/screenshots/pmos-light-1024x768.png and b/screenshots/pmos-light-1024x768.png differ diff --git a/screenshots/pmos-light-1280x800.png b/screenshots/pmos-light-1280x800.png index ba19d40..2d26a1b 100644 Binary files a/screenshots/pmos-light-1280x800.png and b/screenshots/pmos-light-1280x800.png differ diff --git a/screenshots/pmos-light-1440x720.png b/screenshots/pmos-light-1440x720.png index 86c709d..f0df1a8 100644 Binary files a/screenshots/pmos-light-1440x720.png and b/screenshots/pmos-light-1440x720.png differ diff --git a/screenshots/pmos-light-1920x1080.png b/screenshots/pmos-light-1920x1080.png index 046c953..3ea560d 100644 Binary files a/screenshots/pmos-light-1920x1080.png and b/screenshots/pmos-light-1920x1080.png differ diff --git a/screenshots/pmos-light-480x800.png b/screenshots/pmos-light-480x800.png index 088a6d1..73cb3de 100644 Binary files a/screenshots/pmos-light-480x800.png and b/screenshots/pmos-light-480x800.png differ diff --git a/screenshots/pmos-light-540x960.png b/screenshots/pmos-light-540x960.png index 651e22a..4ca3c38 100644 Binary files a/screenshots/pmos-light-540x960.png and b/screenshots/pmos-light-540x960.png differ diff --git a/screenshots/pmos-light-768x1024.png b/screenshots/pmos-light-768x1024.png index e0a75bd..60c009e 100644 Binary files a/screenshots/pmos-light-768x1024.png and b/screenshots/pmos-light-768x1024.png differ diff --git a/screenshots/pmos-light-800x480.png b/screenshots/pmos-light-800x480.png index c899675..38f25bc 100644 Binary files a/screenshots/pmos-light-800x480.png and b/screenshots/pmos-light-800x480.png differ diff --git a/screenshots/pmos-light-960x540.png b/screenshots/pmos-light-960x540.png index 0b9d224..09717c7 100644 Binary files a/screenshots/pmos-light-960x540.png and b/screenshots/pmos-light-960x540.png differ