Skip to content

Made sidebar have fixed position#339

Open
KollPotato wants to merge 2 commits into
ddnet:masterfrom
KollPotato:pr-fixed-sidebar
Open

Made sidebar have fixed position#339
KollPotato wants to merge 2 commits into
ddnet:masterfrom
KollPotato:pr-fixed-sidebar

Conversation

@KollPotato

Copy link
Copy Markdown
Contributor

Fixes #338.

Works on my machine, here is proof:

fixed.sidebar.video.mp4

@Robyt3 Robyt3 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does it work on mobile?

@KollPotato

Copy link
Copy Markdown
Contributor Author

I have tested it in the dev tools on my desktop and also on my phone, works exactly like before.

@KollPotato

Copy link
Copy Markdown
Contributor Author
YouCut_20250823_191335036.mp4

@KollPotato

Copy link
Copy Markdown
Contributor Author

DON'T MERGE!!!! It does not behave as expected on some pages.

@ChillerDragon
ChillerDragon marked this pull request as draft August 23, 2025 16:32
@KollPotato

Copy link
Copy Markdown
Contributor Author

I changed so if there is an overflow the sidebar is scrollable, otherwise no scrollbar is shown.

image image

@KollPotato
KollPotato marked this pull request as ready for review August 23, 2025 16:54
@KollPotato
KollPotato requested a review from Robyt3 August 29, 2025 16:37
@Robyt3

Robyt3 commented Aug 29, 2025

Copy link
Copy Markdown
Member

The navigation scrollbar overlapping the content doesn't look good to me. The scrollbar being visible with a common screen size like 1920x1080 also doesn't look good.

image

@KollPotato

KollPotato commented Aug 30, 2025

Copy link
Copy Markdown
Contributor Author

The scrollbar being visible with a common screen size like 1920x1080 also doesn't look good.

It is intentional that scrollbar only shows up when content doesn't fit screen height

@Robyt3

Robyt3 commented Aug 30, 2025

Copy link
Copy Markdown
Member

This now applies a transition: 0.4s; property to all elements, so the navigation position weirdly transitions when you resize the window, and highlighting of hovered links is barely visible anymore due to the slow transition.

@Pioooooo Pioooooo mentioned this pull request Dec 10, 2025
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.

Fixed sidebar on homepage

2 participants