Commit 78358da
committed
fix(athan): bulletproof truncation for long custom-reciter names
The previous fix added min-w-0 + truncate on the inner div/span pair,
which is the textbook recipe — but only works if every flex parent
above also allows shrinking. The Card, the Label, and the layout's
left-rail aside all had no min-w-0 / no overflow-x constraint, so the
unbreakable filename string could push them all wider than the
intended w-90 column.
Belt-and-suspenders fix:
* AthanPlayer Card: add `min-w-0 overflow-hidden` so the card
can't grow past its parent regardless of contents.
* Custom reciter Label: add `min-w-0 overflow-hidden` for the
same reason at row level.
* LayoutSplit + LayoutSplitArc asides (both rails): add
`min-w-0 overflow-x-hidden` so the column stays exactly
w-90/w-80 even if a child somehow tries to escape.
The inner div + truncate + title attributes from the prior commit
are unchanged. Together this is bulletproof: there's no flex
ancestor between the truncate span and the column boundary that
lacks shrink permission, and the column itself clips horizontal
overflow as a final safety net.1 parent 3dc284f commit 78358da
3 files changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
0 commit comments