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

Navbar width horizontal overflow in 1.20rc #25221

Closed
noahziheng opened this issue Jun 13, 2023 · 7 comments
Closed

Navbar width horizontal overflow in 1.20rc #25221

noahziheng opened this issue Jun 13, 2023 · 7 comments
Labels
topic/ui Change the appearance of the Gitea UI type/bug

Comments

@noahziheng
Copy link

noahziheng commented Jun 13, 2023

Description

Hi all,

I find Gitea UI showing horizontal scrollbar when the content is more than screen like screen shot case. Look like the navbar has overflow its container.

It can be found in try.gitea.io at: https://try.gitea.io/explore/repos

Actually I never found this issue under 1.20-rc.

Maybe the problem is similar with this post, and we can add max-width: 100% or overflow-x: hidden to solve it.

Screenshots

image

image

image

Gitea Version

1.20.0+rc0-17-g3e9fc3672

Can you reproduce the bug on the Gitea demo site?

Yes

Operating System

MacOS Ventura & Windows 11

Browser Version

Microsoft Edge 114.0.1823.37

@noahziheng noahziheng added type/bug topic/ui Change the appearance of the Gitea UI labels Jun 13, 2023
@wxiaoguang
Copy link
Contributor

It's not related to navbar.

IMO actually is a regression of #21850

You can see I have remove the "navbar" and "footer", only "page-content" there:

image

@noahziheng
Copy link
Author

@wxiaoguang Actually the scrollbar will invisble if I remove navbar element

image

@wxiaoguang
Copy link
Contributor

Actually the scrollbar will invisble if I remove navbar element

But it is there in my screenshot, have you tried different pages and different sizes? In some cases "removing navbar element" makes the scrollbar invisible, but in some cases the UI is still not right. That's why I do not think the navbar is the root problem, while there is something wrong behind it.

@wxiaoguang
Copy link
Contributor

Can you try this one? Revert overflow: overlay (revert #21850) #25231

@noahziheng
Copy link
Author

Can you try this one? Revert overflow: overlay (revert #21850) #25231

Looks effective! This revert may cover more case in the UI.

@noahziheng
Copy link
Author

@wxiaoguang But this revert will just hide horizontal scrollbar(because it's not overlay yet).
The navbar(and/or other element we have not find) 's width always exceed its container.

image

@wxiaoguang
Copy link
Contributor

See #25231 (comment)

silverwind added a commit that referenced this issue Jun 13, 2023
It causes not only one issue like #25221 (the footer width was also
affected by that change and was fixed some time ago)

The problem of "overflow: overlay" (#21850) is:

* It's not widely supported and is non-standard
https://caniuse.com/css-overflow-overlay
* It's not widely tested in Gitea (some standard layout like `ui
container + ui grid` may break it).
* The benefit seems smaller than the problems it brings.

So, I think it is good to revert it.

----

Let's leave enough time for testing and reviewing.

---------

Co-authored-by: Giteabot <[email protected]>
Co-authored-by: silverwind <[email protected]>
GiteaBot added a commit to GiteaBot/gitea that referenced this issue Jun 13, 2023
It causes not only one issue like go-gitea#25221 (the footer width was also
affected by that change and was fixed some time ago)

The problem of "overflow: overlay" (go-gitea#21850) is:

* It's not widely supported and is non-standard
https://caniuse.com/css-overflow-overlay
* It's not widely tested in Gitea (some standard layout like `ui
container + ui grid` may break it).
* The benefit seems smaller than the problems it brings.

So, I think it is good to revert it.

----

Let's leave enough time for testing and reviewing.

---------

Co-authored-by: Giteabot <[email protected]>
Co-authored-by: silverwind <[email protected]>
silverwind added a commit that referenced this issue Jun 13, 2023
Backport #25231 by @wxiaoguang

It causes not only one issue like #25221 (the footer width was also
affected by that change and was fixed some time ago)

The problem of "overflow: overlay" (#21850) is:

* It's not widely supported and is non-standard
https://caniuse.com/css-overflow-overlay
* It's not widely tested in Gitea (some standard layout like `ui
container + ui grid` may break it).
* The benefit seems smaller than the problems it brings.

So, I think it is good to revert it.

----

Let's leave enough time for testing and reviewing.

Co-authored-by: wxiaoguang <[email protected]>
Co-authored-by: silverwind <[email protected]>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
topic/ui Change the appearance of the Gitea UI type/bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants