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

Increase table cell padding, use icons in admin table headers #26043

Closed
wants to merge 2 commits into from

Conversation

silverwind
Copy link
Member

@silverwind silverwind commented Jul 21, 2023

  • Increase table cell horizonzal padding from 3px to 5px
  • Add icons to user and repo list in admin tables

Fixes: #25939

Screenshot 2023-07-21 at 18 29 09 Screenshot 2023-07-21 at 18 29 16

Each icon has a tooltip:

Screenshot 2023-07-21 at 18 30 48

Sorting works as usual:

Screenshot 2023-07-21 at 18 31 31

Could be backported. Open for better ideas for icons.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jul 21, 2023
@pull-request-size pull-request-size bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jul 21, 2023
@silverwind silverwind added the backport/v1.20 This PR should be backported to Gitea 1.20 label Jul 21, 2023
@wxiaoguang
Copy link
Contributor

As a site admin (and do the security manager's job....), I have objection for using the "icons", especially for the "user table"

I can't know the user's status clearly with that change.

@lunny
Copy link
Member

lunny commented Jul 22, 2023

I also don't think it's a good idea. I cannot diff different icons and have to put mouse on that icons every time.

@silverwind
Copy link
Member Author

silverwind commented Jul 22, 2023

I think you will get used and remember the meanings of the icons. Repo icons are good, user icons, not so much.

silverwind added a commit that referenced this pull request Jul 25, 2023
Extract from #26043, just the
padding increase.

Before and After (hard to notice, but it's there):
<img width="427" alt="Screenshot 2023-07-25 at 19 37 12"
src="https://github.com/go-gitea/gitea/assets/115237/9543dcda-eccb-4739-b7dd-06b076108ab4">
<img width="420" alt="Screenshot 2023-07-25 at 19 37 26"
src="https://github.com/go-gitea/gitea/assets/115237/0a9c3724-81a1-4c67-a13b-4b728a51fc3a">

Co-authored-by: Giteabot <teabot@gitea.io>
GiteaBot added a commit to GiteaBot/gitea that referenced this pull request Jul 25, 2023
Extract from go-gitea#26043, just the
padding increase.

Before and After (hard to notice, but it's there):
<img width="427" alt="Screenshot 2023-07-25 at 19 37 12"
src="https://github.com/go-gitea/gitea/assets/115237/9543dcda-eccb-4739-b7dd-06b076108ab4">
<img width="420" alt="Screenshot 2023-07-25 at 19 37 26"
src="https://github.com/go-gitea/gitea/assets/115237/0a9c3724-81a1-4c67-a13b-4b728a51fc3a">

Co-authored-by: Giteabot <teabot@gitea.io>
@silverwind
Copy link
Member Author

Does not look like anyone likes the icons.

@silverwind silverwind closed this Jul 25, 2023
@silverwind silverwind deleted the iconheader branch July 25, 2023 21:59
silverwind added a commit that referenced this pull request Jul 26, 2023
Backport #26140 by @silverwind

Extract from #26043, just the
padding increase.

Before and After (hard to notice, but it's there):
<img width="427" alt="Screenshot 2023-07-25 at 19 37 12"
src="https://github.com/go-gitea/gitea/assets/115237/9543dcda-eccb-4739-b7dd-06b076108ab4">
<img width="420" alt="Screenshot 2023-07-25 at 19 37 26"
src="https://github.com/go-gitea/gitea/assets/115237/0a9c3724-81a1-4c67-a13b-4b728a51fc3a">

Co-authored-by: silverwind <me@silverwind.io>
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Oct 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport/v1.20 This PR should be backported to Gitea 1.20 lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Not readable style
4 participants