Skip to content

Commit 6db1cb5

Browse files
committed
fix: improve header responsiveness on very small screens
1 parent 03cc693 commit 6db1cb5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Web/x-header.view.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class="group w-full lg:max-w-5xl xl:max-w-7xl 2xl:max-w-8xl fixed lg:rounded-xl
2121
<img src="/img/logo-transparent.svg" alt="Tempest logo" class="size-full" />
2222
</div>
2323
<span class="font-medium hidden lg:inline">Tempest</span>
24-
<span class="text-xs tracking-wide font-medium text-(--ui-text-muted) bg-(--ui-bg)/50 px-2 py-1 rounded-lg border border-(--ui-border)">
24+
<span class="hidden md:inline text-xs tracking-wide font-medium text-(--ui-text-muted) bg-(--ui-bg)/50 px-2 py-1 rounded-lg border border-(--ui-border)">
2525
v{{ \Tempest\Core\Kernel::VERSION }}
2626
</span>
2727
</a>
@@ -34,7 +34,10 @@ class="group w-full lg:max-w-5xl xl:max-w-7xl 2xl:max-w-8xl fixed lg:rounded-xl
3434
<a
3535
:href="uri([ChapterController::class, 'index'])"
3636
class="transition hover:text-(--ui-text-highlighted) <?= is_uri([ChapterController::class, '__invoke']) ? 'md:text-(--ui-primary)' : '' ?>"
37-
>Documentation</a>
37+
>
38+
<span class="sm:hidden">Docs</span>
39+
<span class="hidden sm:inline">Documentation</span>
40+
</a>
3841
<a
3942
:href="uri([BlogController::class, 'index'])"
4043
class="transition hover:text-(--ui-text-highlighted) <?= is_uri([BlogController::class, 'show']) || is_uri([BlogController::class, 'index']) ? 'md:text-(--ui-primary)' : '' ?>"

0 commit comments

Comments
 (0)