Skip to content

Commit e027a95

Browse files
nattb8claude
andcommitted
fix(audience-sample): keep version badge inline with title on narrow screens (SDK-314)
flex-wrap: wrap on .header-row lets the badge fall to its own row when the title is wide. Disabling wrap at the narrow breakpoint and allowing the title to flex-shrink keeps badge and title on the same row; title text reflows internally within the remaining width. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent ef360bc commit e027a95

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,19 @@
577577
font-size: 24px;
578578
}
579579

580+
/* Keep version badge on the same line as the title. flex-wrap: wrap lets
581+
the badge fall to its own row when the title is wide; disabling wrap
582+
and letting the title shrink (text reflows internally) keeps them together. */
583+
.narrow .header-row {
584+
flex-wrap: nowrap;
585+
align-items: flex-start;
586+
}
587+
588+
.narrow .title {
589+
flex-shrink: 1;
590+
min-width: 0;
591+
}
592+
580593
/* Status bar: bigger font on phone. */
581594
.phone .status-bar {
582595
padding-top: 12px;

0 commit comments

Comments
 (0)