about summary refs log tree commit diff
path: root/src/components/Layout/Header
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2025-03-24 21:55:05 +0200
committerGitHub <noreply@github.com>2025-03-24 12:55:05 -0700
commit412b10742006df48dbde99414453c335f62942b6 (patch)
tree8545dc325a7a532f4df3b42468c667639e3bcd3e /src/components/Layout/Header
parent1b8719293c1f0a3ef351445bdd9c19566f8d6342 (diff)
downloadvoidsky-412b10742006df48dbde99414453c335f62942b6.tar.zst
Extract center column offset, reduce by 20px (#7974)
* extract offset, reduce by 20px

* move constant to `Layout/const.ts`
Diffstat (limited to 'src/components/Layout/Header')
-rw-r--r--src/components/Layout/Header/index.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/Layout/Header/index.tsx b/src/components/Layout/Header/index.tsx
index 8ef114b44..44faa9649 100644
--- a/src/components/Layout/Header/index.tsx
+++ b/src/components/Layout/Header/index.tsx
@@ -23,6 +23,7 @@ import {ArrowLeft_Stroke2_Corner0_Rounded as ArrowLeft} from '#/components/icons
 import {Menu_Stroke2_Corner0_Rounded as Menu} from '#/components/icons/Menu'
 import {
   BUTTON_VISUAL_ALIGNMENT_OFFSET,
+  CENTER_COLUMN_OFFSET,
   HEADER_SLOT_SIZE,
   SCROLLBAR_OFFSET,
 } from '#/components/Layout/const'
@@ -65,7 +66,7 @@ export function Outer({
         gtMobile && [a.mx_auto, {maxWidth: 600}],
         !isWithinOffsetView && {
           transform: [
-            {translateX: centerColumnOffset ? -150 : 0},
+            {translateX: centerColumnOffset ? CENTER_COLUMN_OFFSET : 0},
             {translateX: web(SCROLLBAR_OFFSET) ?? 0},
           ],
         },