From 2943298cbb12fca5b720c877fcdfcde08e65c8d8 Mon Sep 17 00:00:00 2001 From: Anton Medvedev Date: Sun, 7 Dec 2025 20:46:59 +0100 Subject: Refactor menu layout: restructure `.menu` and `.menu-content`, enhance styling with better alignment and max-width constraint. --- pkg/templates/layout.gohtml | 77 ++++++++++++++++++++++++--------------------- 1 file changed, 42 insertions(+), 35 deletions(-) (limited to 'pkg') diff --git a/pkg/templates/layout.gohtml b/pkg/templates/layout.gohtml index 9712577..cefc24d 100644 --- a/pkg/templates/layout.gohtml +++ b/pkg/templates/layout.gohtml @@ -114,14 +114,19 @@ } .menu { + background-color: var(--c-bg-alt); + border-bottom: 1px solid var(--c-divider); + overflow-x: auto; + } + + .menu-content { display: flex; flex-direction: row; align-items: center; gap: 16px; - background-color: var(--c-bg-alt); - border-bottom: 1px solid var(--c-divider); padding-inline: 16px; - overflow-x: auto; + max-width: var(--max-content-width); + margin-inline: auto; } .menu-item { @@ -266,38 +271,40 @@ {{ template "svg" . }}