From 8b273df6b9958f9f5938f82b0ae8f6bc463a73cb Mon Sep 17 00:00:00 2001 From: Herculino Trotta Date: Thu, 3 Dec 2026 22:30:38 -0300 Subject: [PATCH] fix(transactions): keep the transaction picker within the screen on mobile The rule meant to let a picked transaction shrink never matched: tom-select puts the item class on the .ts-tx element itself, so .item:has(.ts-tx) found nothing. Its nowrap text then set the fieldset's min-content width and pushed the field past the screen edge. Target .ts-tx directly, contain its inline size, and ellipsize the date so it can't run into the amount. --- frontend/src/styles/_tom-select.scss | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/styles/_tom-select.scss b/frontend/src/styles/_tom-select.scss index 5cd4637b..efaa480b 100644 --- a/frontend/src/styles/_tom-select.scss +++ b/frontend/src/styles/_tom-select.scss @@ -469,6 +469,7 @@ white-space: nowrap; } +.ts-tx-date, .ts-tx-desc, .ts-tx-account { overflow: hidden; @@ -490,7 +491,9 @@ background-color: transparent; } -.ts-control > .item:has(.ts-tx) { +.ts-control > .ts-tx { flex: 1 1 auto; min-width: 0; + /* Its nowrap text would otherwise set the fieldset's min-content width and push the field off-screen */ + contain: inline-size; }