Skip to content

Commit 4bf6b4a

Browse files
nattb8claude
andcommitted
fix(audience-sample): prevent status values from overflowing on phone (SDK-314)
Add min-width: 0 to .phone .status-cell and .phone .status-value. Yoga's default min-width: auto means a flex item won't shrink below its content's intrinsic size, so flex-shrink: 1 and overflow: hidden on the value had no effect — long UUIDs and URLs pushed the cell off screen. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 539aa78 commit 4bf6b4a

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

examples/audience/Assets/SampleApp/Resources/AudienceSample.uss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,11 @@
559559
.phone .status-cell {
560560
margin-right: 0;
561561
margin-bottom: 6px;
562+
/* Yoga's default min-width: auto means the cell demands its full content
563+
width (label + full UUID) even inside a column flex parent. Setting
564+
min-width: 0 lets the cell shrink to the parent's bounded width so the
565+
value clipping below actually fires. */
566+
min-width: 0;
562567
}
563568

564569
/* Value fills the remaining row width and clips if still too long — the user
@@ -567,6 +572,10 @@
567572
flex-grow: 1;
568573
flex-shrink: 1;
569574
overflow: hidden;
575+
/* Same Yoga min-width: 0 fix — without it flex-shrink: 1 has no effect
576+
on a nowrap text element because the content's intrinsic width acts as
577+
a lower bound. */
578+
min-width: 0;
570579
}
571580

572581
.phone .status-vertical-rule {

0 commit comments

Comments
 (0)