Skip to content

Conversation

alexcambose
Copy link
Contributor

@alexcambose alexcambose commented Sep 22, 2025

Summary

Making dev hub sidebar and table of contents sticky for better UX

Rationale

How has this been tested?

  • Current tests cover my changes
  • Added new tests
  • Manually tested the code

@alexcambose alexcambose requested a review from a team as a code owner September 22, 2025 09:19
Copy link

vercel bot commented Sep 22, 2025

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

Project Deployment Preview Comments Updated (UTC)
component-library Ready Ready Preview Comment Sep 22, 2025 7:15pm
developer-hub Ready Ready Preview Comment Sep 22, 2025 7:15pm
5 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
api-reference Skipped Skipped Sep 22, 2025 7:15pm
entropy-explorer Skipped Skipped Sep 22, 2025 7:15pm
insights Skipped Skipped Sep 22, 2025 7:15pm
proposals Skipped Skipped Sep 22, 2025 7:15pm
staking Skipped Skipped Sep 22, 2025 7:15pm

Comment on lines 36 to 37
overflow: hidden auto;
transform: scale(calc(100% - (var(--offset) * 5%)));
Copy link
Contributor Author

@alexcambose alexcambose Sep 22, 2025

Choose a reason for hiding this comment

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

@cprussin I removed these, for some reason it was messing with the position fixed/sticky and we weren't able to fix elements to the top of the page.
I'm not sure what these were doing or why we had them.

Copy link
Collaborator

Choose a reason for hiding this comment

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

This is used when opening the mobile drawer to offset the page underneath it. It does need to be here -- I'm surprised you're having issues with sticky positioning as we are actively using sticky positioning on table headers in IH to stick table headers to the top of the page....

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reverted

@alexcambose alexcambose changed the title fix: sidebar and table of contents positioning fix(dev-hub): sidebar and table of contents positioning Sep 22, 2025
@alexcambose alexcambose self-assigned this Sep 22, 2025
@vercel vercel bot temporarily deployed to Preview – proposals September 22, 2025 18:05 Inactive
@vercel vercel bot temporarily deployed to Preview – staking September 22, 2025 18:05 Inactive
@vercel vercel bot temporarily deployed to Preview – api-reference September 22, 2025 18:05 Inactive
@alexcambose
Copy link
Contributor Author

Table of contents is still not fixed but spent too much time on this and the most obvious is making the sidebar sticky which works fine

cprussin
cprussin previously approved these changes Sep 22, 2025
background: theme.color("background", "primary");
border-top-left-radius: calc(var(--offset) * theme.border-radius("xl"));
border-top-right-radius: calc(var(--offset) * theme.border-radius("xl"));
height: 100dvh;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this change is safe but I'd be careful with it and make sure to test across screen sizes, especially with the interactions with overlays / drawers

Copy link
Contributor Author

Choose a reason for hiding this comment

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

actually this is just reverting to the initial version, think just the ordering changed here

Copy link
Collaborator

Choose a reason for hiding this comment

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

ah yes I missed the deleted line below, nice ok

@vercel vercel bot temporarily deployed to Preview – insights September 22, 2025 18:53 Inactive
@vercel vercel bot temporarily deployed to Preview – proposals September 22, 2025 18:53 Inactive
@alexcambose alexcambose merged commit fa14e30 into main Sep 22, 2025
10 checks passed
@alexcambose alexcambose deleted the feat/dev-hub-positioning branch September 22, 2025 19:19
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.

2 participants