Skip to content

Hamburger LR config - #128

Merged
sec-ml merged 8 commits into
mainfrom
hamburger-lr-config
Aug 30, 2026
Merged

Hamburger LR config#128
sec-ml merged 8 commits into
mainfrom
hamburger-lr-config

Conversation

@sec-ml

@sec-ml sec-ml commented Aug 29, 2026

Copy link
Copy Markdown
Owner

Config option to allow left (default) or right positioning of hamburger icon. Left probably looks better, but for longer LOGO_TEXT content, there were problems.

The hamburger overlapped with logo. First commit fixes that, with the fallback of making longer content wrap.

Right-positioning the icon gives more content space while avoiding wrapping.

U-Turn Complete!

While trying to shoehorn in support for varying logo text lengths, improving it by supporting L/R configs for the hamburger menu icon, it only raised more questions on how to uniformly support logo text in different scenarios.

The orignal layout only really worked because the demo site/content has a very specific length of name. Anything outside of this needs overrides.

It looked nice, and the drawer sliding out and resulting logo being in exactly the same place was appealing, but the price for this was too high.

Now: hamburger icon is TR corner. When menu bar/drawer is closed, logo is aligned to left side of the post boxes. When drawer is open, the logo is centred in this menu bar/drawer.

Of course, this is only relevant to narrow/mobile widths. Full width, there's no hamburger icon, and the sidebar always shows (logo remains centred here).

Phew.

sec-ml added 2 commits August 29, 2026 21:44
Fix logo overlapping with hamburger icon in mobile view.

Allow the button to wrap to preserve the identical positioning of the drawer logo and closed-drawer logo.
Config option to allow left (default) or right positioning. Left _probably_ looks better, but for longer `LOGO_TEXT` content, there are problems.

Before last commit, the hamburger overlapped. That's at least fixed, but longer content now wraps, so right-pos of the hamburger helps.
@vercel

vercel Bot commented Aug 29, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
nought Ready Ready Preview Aug 30, 2026 4:03pm

sec-ml added 6 commits August 30, 2026 15:43
Slight reversion: remove sidebar_logo_clearance. The default left-logo clearance added an ugly gap to the default logo.

Add px-3 to ensure longer logos maintain some padding to the sidebar drawer edge (default shadow gets cut off otherwise)
Slight reversion: Hamburger L/R not required in Logo context as the clearance is no longer being set.

px-3 to match Header.astro
break-normal was only breaking on whitespace, but if the logo text is too long, wrap-anywhere is required to enforce a break
`LOGO_BODY_OVERRIDE` > `LOGO_POST_OVERRIDE`
While trying to shoehorn in support for varying logo text lengths, improving it by supporting L/R configs for the hamburger menu icon, it only raised more questions on how to uniformly support logo text in different scenarios.

The orignal layout only really worked because the demo site/content has a very specific length of name. Anything outside of this needs overrides.

It looked nice, and the drawer sliding out and resulting logo being in exactly the same place was appealing, but the price for this was too high.

Now: hamburger icon is TR corner. When menu bar/drawer is closed, logo is aligned to left side of the post boxes. When drawer is open, the logo is centred in this menu bar/drawer.

Of course, this is only relevant to narrow/mobile widths. Full width, there's no hamburger icon, and the sidebar always shows (logo remains centred here).

Phew.
@sec-ml
sec-ml merged commit d484bc6 into main Aug 30, 2026
2 checks passed
@sec-ml

sec-ml commented Aug 30, 2026

Copy link
Copy Markdown
Owner Author

Examples of menu/hamburger icon before. Menu closed:
image
Menu open:
image

@sec-ml
sec-ml deleted the hamburger-lr-config branch August 30, 2026 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant