Skip to content

chore: center top menu#134

Closed
Anca2022 wants to merge 1 commit intointerledger:mainfrom
Anca2022:am/center-menu
Closed

chore: center top menu#134
Anca2022 wants to merge 1 commit intointerledger:mainfrom
Anca2022:am/center-menu

Conversation

@Anca2022
Copy link
Copy Markdown
Contributor

PR Checklist

  • Linked issue added: Linear issue INTORG-69
  • If styles were updated:
    • Stylesheet version has been bumped

Summary

Center the top menu on foundation website

@Anca2022 Anca2022 self-assigned this Oct 20, 2025
@Anca2022 Anca2022 requested a review from JoblersTune October 20, 2025 13:08
display: grid;
grid-template-columns: minmax(10em, 1fr) 1fr 1fr;
/* the 123px below: ~ the width of the language switcher, so that menu is centered */
grid-template-columns: 10em 1fr calc(10em - 123px);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Let's avoid "magic numbers". It's always better practice to put a value in a variable and name it. Then when people look at it in the future they can see what this value represents.

I tried explicitly setting the width on the language switcher to 123px and it breaks. Keep in mind the width value changes as the screen size changes, it causes the text size to change since our fonts are set to be smoothly responsive.

@Anca2022 Anca2022 marked this pull request as draft October 22, 2025 08:58
@JoblersTune
Copy link
Copy Markdown
Collaborator

@Anca2022 are you happy to close this PR?

@Anca2022 Anca2022 closed this Feb 20, 2026
@Anca2022 Anca2022 deleted the am/center-menu branch February 20, 2026 12:25
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