-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Revert increased width on pull pages #21470
Conversation
- Revert a behavior from go-gitea#21012, which liberally added `fluid padded` to non-split style pull pages, this caused it to take up the whole screen(such in split-style pull pages) on pull pages where the diff was shown. - Resolves go-gitea#21460
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
My screen might be not wide enough at that moment so I didn't feel unusual 😁
Maybe there could be some comments about why the IsSplitStyle is needed.
Since there are some diff UI in this page, I don't think making it narrow is a good idea. |
It was already narrow to begin with, but for some reason it was removed for the "unified" view(without any reason mentioned on the PR), which doesn't need that much space IMO. I think if that's the design choice we want to go with, it should be adjusted as currently other elements are also being affected that shouldn't be affected(see Labels/Milestone buttons). But I don't see a lot of good reasons to increase the width of the diff one. |
I think we can discuss going full width for certain pages (GitHub also does full width on unified diff), but it needs to be done more carefully without affecting things like this did with the issue/pr page. |
* upstream/main: [skip ci] Updated translations via Crowdin Check for valid user token in integration tests (go-gitea#21520) Ignore error when retrieving changed PR review files (go-gitea#21487) move invite by mail to services package (go-gitea#21513) Enable Monaco automaticLayout (go-gitea#21515) Update macOS install command (go-gitea#21507) [skip ci] Updated translations via Crowdin Suppress `ExternalLoginUserNotExist` error (go-gitea#21504) Revert increased width on pull pages (go-gitea#21470) Add team member invite by email (go-gitea#20307) Disable the 'Add File' button when not able to edit repo (go-gitea#21503) Remove vitest globals (go-gitea#21505) Fix branch dropdown shifting on page load (go-gitea#21428)
fluid padded
to non-split style pull pages, this caused it to take up the whole screen(such in split-style pull pages) on pull pages where the diff was shown.Before
After