Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update header and theme #2261

Merged
merged 3 commits into from
Jun 24, 2024
Merged

update header and theme #2261

merged 3 commits into from
Jun 24, 2024

Conversation

frzyc
Copy link
Owner

@frzyc frzyc commented Jun 23, 2024

Describe your changes

Issue or discord link

Testing/validation

New(left) vs. Old(right)
Screenshot 2024-06-23 001905

Mobile
image

Checklist before requesting a review (leave this PR as draft if any part of this list is not done.)

  • I have commented my code in hard-to understand areas.
  • I have made corresponding changes to README or wiki.
  • For front-end changes, I have updated the corresponding English translations.
  • I have run yarn run mini-ci locally to validate format and lint.
  • If I have added a new library or app, I have updated the deployment scripts to ignore changes as needed

Copy link
Contributor

github-actions bot commented Jun 23, 2024

[frontend] [Sun Jun 23 04:25:37 UTC 2024] - Deployed c132019 to https://genshin-optimizer-prs.github.io/pr/2261/frontend (Takes 3-5 minutes after this completes to be available)

[frontend] [Sun Jun 23 04:36:37 UTC 2024] - Deployed 27e0939 to https://genshin-optimizer-prs.github.io/pr/2261/frontend (Takes 3-5 minutes after this completes to be available)

[frontend] [Sun Jun 23 11:39:30 UTC 2024] - Deployed 78e379b to https://genshin-optimizer-prs.github.io/pr/2261/frontend (Takes 3-5 minutes after this completes to be available)

[frontend] [Sun Jun 23 11:42:34 UTC 2024] - Deployed 9f9677a to https://genshin-optimizer-prs.github.io/pr/2261/frontend (Takes 3-5 minutes after this completes to be available)

[Mon Jun 24 04:32:26 UTC 2024] - Deleted deployment

@frzyc frzyc marked this pull request as ready for review June 23, 2024 19:58
@frzyc frzyc requested a review from nguyentvan7 June 23, 2024 19:58
@@ -217,37 +220,34 @@ function HeaderContent({ anchor }: { anchor: string }) {
transition: 'background-color 0.5s ease',
backgroundColor: 'rgba(255,255,255,0.1)',
},
}}
'& .Mui-selected': {
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 the text is supposed to be bolded as well
design doc:
image

site:
image

Copy link
Owner Author

@frzyc frzyc Jun 24, 2024

Choose a reason for hiding this comment

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

I did try to do that, but bolding the text makes it slightly wider, so it causes a tiny bit of layout shift.
Screenshot 2024-06-23 221900
Screenshot 2024-06-23 221823

Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you try with pseudoelement with prebolded text? I think the current design is a bit hard to notice which tab you're on even with the colorization

https://stackoverflow.com/questions/556153/inline-elements-shifting-when-made-bold-on-hover

Copy link
Owner Author

Choose a reason for hiding this comment

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

I've tried that, and many other solutions like fake bolding with dropshadow and manual letter-spacing. I've not gotten it to work and I don't want to spend more time on it.
also, you can't seriously argue that you can't see which tab is activated here if the text isn't bolded?

image

Copy link
Collaborator

@nguyentvan7 nguyentvan7 left a comment

Choose a reason for hiding this comment

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

/shrug

@frzyc frzyc merged commit d700860 into master Jun 24, 2024
6 checks passed
@frzyc frzyc deleted the header_glowup branch June 24, 2024 04:31
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.

None yet

2 participants