Skip to content

Commit cc0aad4

Browse files
authored
Merge pull request #89 from Kiran-Baldaniya/feat/hide-unfinished-feeds-explore-nav
To align header in the centre
2 parents 383aee9 + 3d54440 commit cc0aad4

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

src/view/com/home/HomeHeaderLayout.web.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,12 @@ function HomeHeaderLayoutDesktopAndTablet({
5555
<Layout.Center>
5656
<View
5757
style={[a.flex_row, a.align_center, gutters, a.pt_md, t.atoms.bg]}>
58-
<View style={{width: 34}} />
58+
{/*
59+
* This spacer balanced the feeds button on the right so the logo
60+
* stayed centered. Both are hidden together for now; restore them
61+
* together to keep the logo centered.
62+
*/}
63+
{/* <View style={{width: 34}} /> */}
5964
<View style={[a.flex_1, a.align_center, a.justify_center]}>
6065
{kawaii ? (
6166
<Logo width={60} />

src/view/com/home/HomeHeaderLayoutMobile.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,13 @@ export function HomeHeaderLayoutMobile({
8383
</PressableScale>
8484
</View>
8585

86+
{/*
87+
* Empty slot to balance the menu button on the left so the logo stays
88+
* centered while the feeds button is hidden. Remove this when restoring
89+
* the feeds button slot below.
90+
*/}
91+
<Layout.Header.Slot />
92+
8693
{/* Temporarily hidden: unfinished Bluesky-derived feeds preferences button. */}
8794
{/* <Layout.Header.Slot>
8895
{hasSession && (

0 commit comments

Comments
 (0)