From 5eeb5d3e4660a0747950f07742c0fd0c3a9f694e Mon Sep 17 00:00:00 2001 From: Shane Smith Date: Fri, 27 Nov 2026 18:42:56 +1030 Subject: [PATCH] Keep tab bar & text rows readable at large text sizes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit At large system text sizes, rows that sat side by side squeezed their text into narrow columns or cut it off. They now wrap, so a part that won't fit moves whole to the next line: - Log: "· not shown in general logs" beside a guild post's pill - Guilds: "Create a guild" under "Start a public group." - Profile: the follower counts, the activity summary, the current streak, and the unlocked count and XP line of the achievements - Landing: the terms of service and privacy policy links, which also get a minimum height in place of a fixed one The guild pill inside commit text takes its height from its name plus padding, so it grows with the text instead of clipping it. On a profile the handle no longer shrinks: the rank's name gives way first, so the handle stays whole and the level still shows. A joined guild now says "· Joined" after its member count, in place of an icon at the end of the row, so the description keeps the row's full width and the mark scales with the text. --- resources/views/native/guilds.blade.php | 5 +++-- resources/views/native/onboarding.blade.php | 7 ++++--- .../native/partials/achievements.blade.php | 15 ++++++++------- .../views/native/partials/activity.blade.php | 3 ++- .../views/native/partials/guild-badge.blade.php | 4 +++- .../native/partials/guild-mention.blade.php | 7 ++++--- .../views/native/partials/guild-row.blade.php | 16 ++++++++-------- .../native/partials/profile-header.blade.php | 16 ++++++++++------ .../views/native/partials/streaks.blade.php | 17 +++++++++++------ tests/Feature/Screens/GuildsTest.php | 4 ++-- 10 files changed, 55 insertions(+), 39 deletions(-) diff --git a/resources/views/native/guilds.blade.php b/resources/views/native/guilds.blade.php index 81cd4623..cfba43a5 100644 --- a/resources/views/native/guilds.blade.php +++ b/resources/views/native/guilds.blade.php @@ -35,8 +35,9 @@ class="w-full text-theme-ink" Search names, #handles, and descriptions. - - Start a public group. + {{-- At large text sizes the button moves under the sentence rather than squeezing it. --}} + + Start a public group. Create a guild diff --git a/resources/views/native/onboarding.blade.php b/resources/views/native/onboarding.blade.php index f88f8ebf..fdc6ffa0 100644 --- a/resources/views/native/onboarding.blade.php +++ b/resources/views/native/onboarding.blade.php @@ -37,11 +37,12 @@ I agree to the terms of service and privacy policy. There's no tolerance for objectionable content or abusive users. - - + {{-- At large text sizes the privacy policy moves under the terms rather than being cut off. --}} + + Terms of service - + Privacy policy diff --git a/resources/views/native/partials/achievements.blade.php b/resources/views/native/partials/achievements.blade.php index 24db5c91..41558ccc 100644 --- a/resources/views/native/partials/achievements.blade.php +++ b/resources/views/native/partials/achievements.blade.php @@ -3,17 +3,19 @@ are unlocked, a bar of the way to the next rank in the owner's lane, and the badges. An unlocked badge is a hairline chip in ink; a locked one is muted, with its progress when it takes more than one step. - Like the web's compact shelf, only earned badges show here. Native rows don't wrap on iOS, so two fit beside + Like the web's compact shelf, only earned badges show here. Only two fit beside the count of the rest; every badge, locked or earned, is in the sheet (see achievements-sheet). Tapping an earned badge opens it marked. The empty shelf offers View achievements. --}} - - - {{ $achievements->label() }} - + {{-- At large text sizes the unlocked count moves under the rank rather than being cut off. --}} + + + + {{ $achievements->label() }} + {{ $achievements->unlockedCount() }} / {{ count($achievements->badges) }} unlocked @@ -21,9 +23,8 @@ - + {{ $achievements->xpLabel() }} - {{ $achievements->nextRankLabel() }} @include('native.partials.progress-bar', ['ref' => 'level-progress', 'percent' => $achievements->levelProgress, 'fill' => 'bg-theme-'.\App\Devnull\Lane::token($lane), 'label' => "{$achievements->levelProgress}% of the way to the next rank"]) diff --git a/resources/views/native/partials/activity.blade.php b/resources/views/native/partials/activity.blade.php index f1ff0dcc..aebf64ce 100644 --- a/resources/views/native/partials/activity.blade.php +++ b/resources/views/native/partials/activity.blade.php @@ -6,7 +6,8 @@ @php($gap = $activity->scale === 'year' ? 2 : 3) @php($summary = $activity->isEmpty() ? 'No commits yet' : \App\Devnull\Display::count($activity->total(), 'commit', 'commits').' '.$activity->window()) - + {{-- At large text sizes the summary moves under the heading rather than squeezing beside it. --}} + Commit activity @if ($activity->isEmpty()) No commits yet diff --git a/resources/views/native/partials/guild-badge.blade.php b/resources/views/native/partials/guild-badge.blade.php index 83f32786..c45fffb2 100644 --- a/resources/views/native/partials/guild-badge.blade.php +++ b/resources/views/native/partials/guild-badge.blade.php @@ -5,9 +5,11 @@ Tapping the pill opens the guild's own screen (see OpensGuilds). A guild's own board leaves the badge off its commits, since they're all posted there (see Guild). + + At large text sizes "· not shown in general logs" moves whole to the next line rather than squeezing. --}} @php($guild = $commit->guild) - + posted in @include('native.partials.guild-mark', ['guild' => $guild, 'size' => 14, 'ref' => 'guild-pill-mark-'.$commit->id]) diff --git a/resources/views/native/partials/guild-mention.blade.php b/resources/views/native/partials/guild-mention.blade.php index 58db442d..42d42348 100644 --- a/resources/views/native/partials/guild-mention.blade.php +++ b/resources/views/native/partials/guild-mention.blade.php @@ -2,12 +2,13 @@ A guild mentioned in a commit, as the web's guild mention: the guild's mark (see guild-mark), then its name in medium mono, in a rounded tag edged with a hairline on the wash, like the "posted in" pill and a bio's tags. A tap opens the guild. Scaled to $size, the size of the text around it. The tag is a little shorter than a line, - with the rest above and below it, so tags on wrapped lines don't touch. + with the rest above and below it, so tags on wrapped lines don't touch. Its height comes from its name plus + padding, not a fixed number, so it grows with the system text size instead of cutting the name off. --}} -@php($height = round($size * 1.35)) +@php($padding = round($size * 0.1)) @php($mark = round($size * 1.05)) - + @include('native.partials.guild-mark', ['guild' => $guild, 'size' => $mark, 'ref' => $ref.'-mark']) {{ $guild->name }} diff --git a/resources/views/native/partials/guild-row.blade.php b/resources/views/native/partials/guild-row.blade.php index 6f02386d..8b7a08ff 100644 --- a/resources/views/native/partials/guild-row.blade.php +++ b/resources/views/native/partials/guild-row.blade.php @@ -1,6 +1,7 @@ {{-- A guild in the directory, as the web's card shows it: its uploaded icon, or its emoji (see guild-mark). One - you've joined has a mark at the end of its row, apart from anything about moderating it, which doesn't need joining. + you've joined says so after its member count, apart from anything about moderating it, which doesn't need joining. + It sits on that line rather than at the end of the row so the description keeps the row's full width. Tapped, it opens the guild's screen (see OpensGuilds). --}} @@ -15,12 +16,11 @@ @if ($guild->description !== '') {{ $guild->description }} @endif - {{ $members }} - - {{-- Kept on every row, so a description wraps in the same place whether you've joined or not. --}} - - @if ($guild->isJoined) - - @endif + + {{ $members }} + @if ($guild->isJoined) + · Joined + @endif + diff --git a/resources/views/native/partials/profile-header.blade.php b/resources/views/native/partials/profile-header.blade.php index cee03f8c..cde7cd5f 100644 --- a/resources/views/native/partials/profile-header.blade.php +++ b/resources/views/native/partials/profile-header.blade.php @@ -63,11 +63,12 @@ {{ $user->name }} {{-- The handle, then what the web marks beside it: Follows you, Muted, and the Unix rank in the - owner's lane. EDGE's rows don't wrap on iOS, so the handle gives way first. + owner's lane. At large text sizes the rank's name gives way first, so the handle stays whole and + the level still shows. --}} - {{ $user->handle() }} + {{ $user->handle() }} @if ($profile->followsYou && ! $sketched) Follows you @@ -79,8 +80,11 @@ @endif @if ($profile->achievements && ! $sketched) - - {{ $profile->achievements->label() }} + + + Lv. {{ $profile->achievements->level }} + {{ "\u{00A0}· ".$profile->achievements->rank }} + @endif @@ -111,8 +115,8 @@ @if (! $sketched) - {{-- Following and followers open their lists, as the web links them. --}} - + {{-- Following and followers open their lists, as the web links them. At large text sizes a count that won't fit moves whole to the next line. --}} + @foreach ([[$profile->commitsCount, 'commit', 'commits', null], [$profile->followingCount, 'following', 'following', 'following'], [$profile->followersCount, 'follower', 'followers', 'followers']] as [$count, $singular, $plural, $list]) @if ($list === null) diff --git a/resources/views/native/partials/streaks.blade.php b/resources/views/native/partials/streaks.blade.php index 9a038c69..026e17fa 100644 --- a/resources/views/native/partials/streaks.blade.php +++ b/resources/views/native/partials/streaks.blade.php @@ -1,12 +1,17 @@ -{{-- The streaks under the activity strip, in mono: muted labels, ink numbers, a lane dot before a streak still going. --}} +{{-- + The streaks under the activity strip, in mono: muted labels, ink numbers, a lane dot before a streak still going. + At large text sizes the current streak moves whole, separator and all, to the next line rather than squeezing. +--}} @if ($streaks->longest > 0) - + longest streak {{ $streaks->longest }} {{ $streaks->longest === 1 ? 'day' : 'days' }} @if ($streaks->current > 0) - · - - - current {{ $streaks->current }} + + · + + + current {{ $streaks->current }} + @endif diff --git a/tests/Feature/Screens/GuildsTest.php b/tests/Feature/Screens/GuildsTest.php index f6d3f6c8..c03957ee 100644 --- a/tests/Feature/Screens/GuildsTest.php +++ b/tests/Feature/Screens/GuildsTest.php @@ -280,12 +280,12 @@ function serveGuilds(array $pages): void expect(app(Account::class)->guildsTabShown())->toBeFalse(); }); -it('marks the guilds you have joined at the end of their row', function () { +it('marks the guilds you have joined on their members line', function () { serveApi(['GET /api/v1/guilds' => [guildsPage([guildJson(['handle' => 'rust', 'is_joined' => true]), guildJson(['handle' => 'go'])])]]); $screen = finishRefreshes(Native::visit('/guilds')); expect(nodeByRef($screen, 'guild-rust')['props']['a11y_label'] ?? nodeByRef($screen, 'guild-rust')['a11y_label'] ?? null)->toBe('Rust, #rust, 3 members, joined') - ->and(findNode($screen->tree(), fn (array $node): bool => ($node['ref'] ?? null) === 'guild-joined-rust'))->not->toBeNull() + ->and(childRefs($screen, 'guild-members-rust'))->toContain('guild-joined-rust') ->and(findNode($screen->tree(), fn (array $node): bool => ($node['ref'] ?? null) === 'guild-joined-go'))->toBeNull(); });