1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-10-18 11:14:57 +02:00
unleash.unleash/frontend/src/component/admin
Thomas Heartman 705a0e50d1
fix: isOss check + minor UI things (#8828)
This PR fixes the isOss check for the licensed users component. It also
addresses two things in the UI:

1. It right-aligns the text on the button so that when we get narrower,
the text doesn't slide to the center. There's a few more things that we
can fix later, though. When you press it, it'll still show the entire
button layout:

![image](https://github.com/user-attachments/assets/ea4606be-614a-455e-921f-45ed8d40df23)
And when you focus it with a keyboard it still looks like a button. 

We can get around that by using a regular button and just styling it a
bit, but making the text align will take some extra jimmying around (not
done in this pr, but got stashed changes for it)

![image](https://github.com/user-attachments/assets/33b2f32b-0027-45bf-84f2-4a5e99ef38b2)

But this is what it'd look like now with centered text: 

![image](https://github.com/user-attachments/assets/fe4c6b28-ede1-4418-a471-c2b6b959aacf)



2. It wraps the entire left column in a `p` tag, because they belong
together. They're not two logical paragraphs. So instead, we wrap them
in spans and surround them in a
p. `Display: contents` makes the p "invisible", so its children act as
if
they're children of the container above it instead.
2024-11-22 09:26:52 +01:00
..
apiToken chore: fix "key" prop issues in front end tests (#8459) 2024-10-16 14:57:43 +02:00
auth fix: missing page titles (#8477) 2024-10-18 13:12:58 +02:00
banners chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
billing chore: PAYG traffic bundles (#8805) 2024-11-20 15:20:50 +00:00
cors chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
groups refactor: ts checking conditionallyrender props (#7840) 2024-08-30 13:39:11 +02:00
instance-admin feat: add remaining resource usage to instance stats (#7958) 2024-08-22 13:09:26 +02:00
instance-privacy chore: rename toggle to flag #2 (#7097) 2024-05-22 08:20:11 +03:00
invoice chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
license fix: add instanceName to license display (#6065) 2024-01-30 11:05:27 +01:00
maintenance chore: add no unused imports biome rule (#5855) 2024-01-11 12:44:05 +00:00
menu chore: remove navigation sidebar leftover flag (#8504) 2024-10-22 10:08:27 +02:00
network chore: PAYG traffic bundles (#8805) 2024-11-20 15:20:50 +00:00
roles chore: hide release plan template permissions behind feature flag (#8799) 2024-11-20 07:59:45 +01:00
serviceAccounts task: upgraded semver dependency (and biome) (#7272) 2024-06-04 15:01:43 +02:00
users fix: isOss check + minor UI things (#8828) 2024-11-22 09:26:52 +01:00
Admin.tsx chore: remove navigation sidebar leftover flag (#8504) 2024-10-22 10:08:27 +02:00
AdminIndex.tsx chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
AdminRedirect.tsx
adminRoutes.ts chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
filterAdminRoutes.test.ts
filterAdminRoutes.ts chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
LazyAdmin.tsx
LazyAdminExport.tsx
useAdminRoutes.ts