Уменьшил размер навбара для малых экранов
Some checks failed
/ build (push) Successful in 6m15s
/ deploy (push) Failing after 1m35s

This commit is contained in:
Иван Кузьменко 2025-11-26 17:00:24 +03:00
parent 0513ffa71a
commit 763b263b5a

View file

@ -12,7 +12,7 @@
</script>
<nav
class="flex shrink-0 flex-row gap-2 bg-slate-100 not-landscape:justify-around not-landscape:overflow-x-auto not-landscape:px-2 landscape:flex-col landscape:overflow-y-auto landscape:py-2"
class="flex shrink-0 flex-row gap-2 bg-slate-100 not-landscape:justify-around not-landscape:overflow-x-auto not-landscape:sm:px-2 landscape:flex-col landscape:overflow-y-auto landscape:sm:py-2"
>
{#each routes as route (route.href)}
<a class="nav-button {isActive(route.href) ? 'active' : ''}" href={route.href}>
@ -36,10 +36,10 @@
@import '$src/app.css';
.nav-button {
@apply flex aspect-square shrink-0 flex-col items-center justify-center gap-0.5 p-2 text-slate-950 not-landscape:h-24 hover:bg-emerald-400 landscape:w-24;
@apply flex aspect-square shrink-0 flex-col items-center justify-center gap-0.5 p-1 text-slate-950 not-landscape:h-20 hover:bg-emerald-400 sm:p-2 not-landscape:sm:h-24 landscape:w-20 landscape:sm:w-24;
> .contour {
@apply rounded-full px-1.5 py-0.5 text-center;
@apply rounded-full px-1 py-0.5 text-center sm:px-1.5;
}
&.active {