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.
This commit is contained in:
Herculino Trotta committed 2026-12-03 22:30:38 -03:00
1 parent 6d56958deb
commit 8b273df6b9
1 file changed
+4 -1
+4 -1
View File
@@ -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;
}