1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-05-03 01:18:43 +02:00
unleash.unleash/src
Thomas Heartman 243088fdca
fix: Add strategy and more strategies button are different heights (#9300)
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](https://github.com/user-attachments/assets/4dda44b3-3add-40cd-93ed-48150e73ac35)

After (flag enabled):

![image](https://github.com/user-attachments/assets/2788f141-fe64-4733-9202-f9f115396001)


Before (flag disabled):

![image](https://github.com/user-attachments/assets/c3a9d396-cb30-4a61-9400-45458189d3f2)

After (flag disabled):

![image](https://github.com/user-attachments/assets/0570ff85-401a-4e6f-93e7-d1619a4cd848)

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".

1. 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.
2025-02-12 13:54:06 +01:00
..
lib feat: frontend API POST endpoint (#9291) 2025-02-12 11:56:51 +00:00
mailtemplates feat: productivity email action text (#8966) 2024-12-12 12:00:08 +01:00
migrations chore: add migration that backfills scim user email hashes (#9295) 2025-02-12 09:05:36 +01:00
test chore: Create test db from template (#9265) 2025-02-11 13:01:43 +01:00
migrator.ts chore: Create test db from template (#9265) 2025-02-11 13:01:43 +01:00
server-dev.ts fix: Add strategy and more strategies button are different heights (#9300) 2025-02-12 13:54:06 +01:00
server.ts Define exports for enterprise (#2435) 2022-11-17 13:02:40 +02:00