1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-11-24 20:06:55 +01:00
unleash.unleash/frontend/src/component/changeRequest
Thomas Heartman 2b780e0120
Set a max width on the CR sidebar instead of a min width. (#10307)
The max width is set to `max(40vw, 1000px)`, so that if you're on a very
wide window, then it'll take up at most 40% of the horizontal space.
Once your window is smaller than 2500px, however, the sidebar will stop
shrinking and stay at 1000px (or as close to that as the window allows).
It'll keep shrinking with the window size.

This came up because in certain cases, such as if you have a release
template with a long description, the modal would just keep growing
until it took up 98% of the window width.

I have not set a min width for now. I don't think there is any need for
it, but if we find there is, we can add it back later.

Before:

![image](https://github.com/user-attachments/assets/815b014b-765f-4670-8724-dc70a71b3c17)


After: 

![image](https://github.com/user-attachments/assets/d2b59410-0907-4606-81b3-8103dfbcb44c)
2025-07-03 12:49:36 +00:00
..
ChangeRequest fix segment changed name not showing (#10304) 2025-07-03 13:58:56 +02:00
ChangeRequestConfirmDialog
ChangeRequestOverview chore: prepend changes with "change:" (#10276) 2025-07-03 11:14:04 +02:00
ChangeRequestSidebar Set a max width on the CR sidebar instead of a min width. (#10307) 2025-07-03 12:49:36 +00:00
ChangeRequestStatusBadge refactor: strategy draggable item is now proj/env agnostic (#9411) 2025-03-05 10:34:55 +01:00
ModifiedInChangeRequestStatusBadge
ProjectChangeRequests feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
ChangeRequest.test.tsx feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
changeRequest.types.ts feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
ChangeRequestContext.tsx
ChangeRequestPermissions.test.tsx chore!: removing userId strategy for new installations of Unleash (#9800) 2025-06-04 09:30:13 +02:00
changesCount.ts
UpdateCount.test.tsx feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
UpdateCount.tsx feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00