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

fix: Add strategy and more strategies button are different heights #9300

Merged

Conversation

thomasheartman
Copy link
Contributor

@thomasheartman thomasheartman commented Feb 12, 2025

Fixes the height discrepancy between add strategy and more strategies buttons, both with and without the flag enabled.

The essence of the fix is to make the "more strategies" button's height dynamic and grow to match the height of the other button.

Before (flag enabled):
image

After (flag enabled):
image

Before (flag disabled):
image

After (flag disabled):
image

As a bonus: also enables the ui font redesign flag for server-dev.

If you're very sharp-eyed, you might notice a few things:

  1. There's more padding on the new button. This was done in concert with UX when we noticed there was more padding on other buttons. So as a result, we set the button type to the default instead of "small".

  2. The kebab button isn't perfectly square with the flag on. There's a few issues here, but essentially: to use aspect-ratio: 1, you need either a height or a width set. Because we want everything here to be auto-generated (use the button's intrinsic height), I couldn't make it work. In the end, I think this is close enough. If you have other ideas, you're very welcome to try and fix it.

Copy link

vercel bot commented Feb 12, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 12, 2025 0:49am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Feb 12, 2025 0:49am

Copy link
Contributor

github-actions bot commented Feb 12, 2025

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Files

@thomasheartman thomasheartman merged commit 243088f into main Feb 12, 2025
8 of 12 checks passed
@thomasheartman thomasheartman deleted the fix(1-3364)/make-more-stratgies-buttons-the-same-size branch February 12, 2025 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants