Skip to content

Introduce --page-space-bottom at 64px #30692

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

Merged
merged 6 commits into from
Apr 25, 2025
Merged

Introduce --page-space-bottom at 64px #30692

merged 6 commits into from
Apr 25, 2025

Conversation

silverwind
Copy link
Member

Previously we would always leave 80px space before the page footer, but this is problematic with small viewport heights on projects page for example. I think it' ideal that we use --page-spacing which is already in use for spacing on top of the page.

The secondary-nav margin is also adjusted as I see no value why this shouldn't be the same value.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Apr 24, 2024
@silverwind silverwind changed the title Set page bottom padding to --page-spacing Set page bottom padding to --page-spacing Apr 24, 2024
@lunny
Copy link
Member

lunny commented Apr 25, 2024

Why not 80px? I'm suitable to have more space. Too little space makes me feel stressful.

@silverwind
Copy link
Member Author

silverwind commented Apr 25, 2024

Take for example project view on small viewport height:

image

In this case, a third of the height is wasted by this empty space. With 16px, the space is used much more efficiently:

image

Not sure how common such viewport heights are but I often see this problem when I have DevTools open.

@silverwind
Copy link
Member Author

Likely should use a new variable like --page-margin-y or --page-margin-bottom.

@lunny
Copy link
Member

lunny commented Apr 25, 2024

Take for example project view on small viewport height:
image

In this case, a third of the height is wasted by this empty space. With 16px, the space is used much more efficiently:
image

Not sure how common such viewport heights are but I often see this problem when I have DevTools open.

I personally don't think they are a waste. I like the first one. I like the relaxed feeling. Maybe --page-margin-bottom is a better name.

@silverwind silverwind marked this pull request as draft April 25, 2024 14:34
@wxiaoguang
Copy link
Contributor

wxiaoguang commented Apr 25, 2025

Take for example project view on small viewport height:

The project view has been improved by " Add fullscreen mode as a more efficient operation way to view projects #34081 " . Even in non-fullscreen mode, the column heights are all correctly set by vh, so the UI should be better than before, and most users do not need to pay attention to the "bottom space" now.

So the "bottom padding" could be kept as old, I also agree that the old design looks more comfortable.

@wxiaoguang wxiaoguang added the issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail label Apr 25, 2025
@silverwind
Copy link
Member Author

silverwind commented Apr 25, 2025

Maybe we should reduce it slightly from 80px to 64px to match GitHub, and introduce a CSS variable for it:

image

@silverwind silverwind changed the title Set page bottom padding to --page-spacing Introduce --page-margin-bottom at 64px Apr 25, 2025
@silverwind
Copy link
Member Author

silverwind commented Apr 25, 2025

I've now added the variable and set it to 64px, matching GitHub:

image

@silverwind silverwind marked this pull request as ready for review April 25, 2025 13:54
@silverwind
Copy link
Member Author

Looking good now? The variable name can be bikeshed over, it's actually setting padding now but is called margin.

@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Apr 25, 2025
@wxiaoguang
Copy link
Contributor

Looking good now? The variable name can be bikeshed over, it's actually setting padding now but is called margin.

Maybe page-space-bottom is better

@silverwind silverwind changed the title Introduce --page-margin-bottom at 64px Introduce --page-space-bottom at 64px Apr 25, 2025
@silverwind
Copy link
Member Author

Renamed.

@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Apr 25, 2025
@lunny lunny merged commit 27ff5e2 into go-gitea:main Apr 25, 2025
26 checks passed
@GiteaBot GiteaBot added this to the 1.25.0 milestone Apr 25, 2025
@lunny lunny modified the milestones: 1.25.0, 1.24.0 Apr 25, 2025
@silverwind silverwind deleted the ps branch April 25, 2025 23:15
zjjhot added a commit to zjjhot/gitea that referenced this pull request Apr 28, 2025
* giteaofficial/main:
  Fix button alignments (go-gitea#34276)
  Update token creation API swagger documentation (go-gitea#34288)
  [skip ci] Updated translations via Crowdin
  Explicitly not update indexes when sync database schemas (go-gitea#34281)
  Introduce `--page-space-bottom` at 64px (go-gitea#30692)

# Conflicts:
#	templates/repo/wiki/revision.tmpl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. modifies/frontend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants