From 36b0c183701f526c2aabeea681d3f3765acddcc8 Mon Sep 17 00:00:00 2001 From: Grzegorz Kucmierz Date: Wed, 11 Feb 2026 06:14:19 +0100 Subject: [PATCH] fix: improve desktop layout, scrolling and background --- src/App.vue | 7 +++++++ src/components/NavBar.vue | 4 +++- src/styles/main.css | 5 ++--- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/App.vue b/src/App.vue index eb69cb8..8ce5e03 100644 --- a/src/App.vue +++ b/src/App.vue @@ -190,6 +190,7 @@ onUnmounted(() => { gap: 20px; width: 100%; padding-bottom: 50px; + padding-top: 100px; /* Space for fixed NavBar */ } .install-banner { @@ -204,6 +205,9 @@ onUnmounted(() => { max-width: 600px; margin: 0 auto 20px auto; /* Center it manually */ box-shadow: var(--banner-shadow); + position: sticky; + left: 0; + right: 0; } .install-text { @@ -239,6 +243,9 @@ onUnmounted(() => { margin-right: auto; max-width: 1200px; /* Keep constraint for panels */ width: 100%; + position: sticky; + left: 0; + right: 0; } .board-section { diff --git a/src/components/NavBar.vue b/src/components/NavBar.vue index af1d77f..ba73489 100644 --- a/src/components/NavBar.vue +++ b/src/components/NavBar.vue @@ -435,8 +435,10 @@ watch(isMobileMenuOpen, (val) => { justify-content: space-between; align-items: center; z-index: 100; - position: sticky; + position: fixed; top: 0; + left: 0; + right: 0; } .nav-left { diff --git a/src/styles/main.css b/src/styles/main.css index 094ec9e..9765778 100644 --- a/src/styles/main.css +++ b/src/styles/main.css @@ -130,7 +130,6 @@ } html { - overflow-x: hidden; width: 100%; } @@ -139,18 +138,18 @@ body { padding: 20px; font-family: 'Segoe UI', 'Roboto', Helvetica, Arial, sans-serif; background: var(--bg-gradient); + background-attachment: fixed; + background-size: cover; color: var(--text-color); min-height: 100vh; display: flex; flex-direction: column; align-items: center; - overflow-x: hidden; } /* Ensure no other content is visible */ #app { width: 100%; - max-width: 100vw; display: flex; flex-direction: column; align-items: center;