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

Fix the spacing issue in the Project view #30415

Merged
merged 7 commits into from
Apr 12, 2024

Conversation

HEREYUA
Copy link
Contributor

@HEREYUA HEREYUA commented Apr 11, 2024

Fixes: #30388

before

image

after

image

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Apr 11, 2024
@pull-request-size pull-request-size bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Apr 11, 2024
@github-actions github-actions bot added the modifies/templates This PR modifies the template files label Apr 11, 2024
@HEREYUA HEREYUA changed the title Fix the spacing issue in the Project view interface Fix the spacing issue in the Project view Apr 11, 2024
Copy link
Member

@silverwind silverwind left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could also add class it to parent node I suppose. Such wrapper divs should be avoided where possible.

@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 11, 2024
@silverwind silverwind added the backport/v1.22 This PR should be backported to Gitea 1.22 label Apr 11, 2024
@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 11, 2024
@lunny lunny added the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Apr 11, 2024
@silverwind silverwind removed the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Apr 11, 2024
@silverwind
Copy link
Member

Wait a bit on comment above.

@lunny lunny added reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. and removed reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. labels Apr 11, 2024
@HEREYUA
Copy link
Contributor Author

HEREYUA commented Apr 11, 2024

Okay, I noticed that there were several other similar usages, so I added margins this way.

<div class="tw-mb-4">
{{template "user/overview/header" .}}
</div>

<div class="tw-mb-4">
{{template "user/overview/header" .}}
</div>

<div class="tw-mb-4">
{{template "user/overview/header" .}}
</div>

<div class="tw-mb-4">
{{template "user/overview/header" .}}
</div>
{{template "package/shared/list" .}}

Should all of the above be changed?

@silverwind
Copy link
Member

Yes, I would recommend adding the helper class on the existing parent in all cases.

@pull-request-size pull-request-size bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Apr 11, 2024
@HEREYUA
Copy link
Contributor Author

HEREYUA commented Apr 11, 2024

Yes, I would recommend adding the helper class on the existing parent in all cases.

Updated

@lunny lunny added the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Apr 12, 2024
@lunny lunny enabled auto-merge (squash) April 12, 2024 01:35
@lunny lunny merged commit e8a99c8 into go-gitea:main Apr 12, 2024
26 checks passed
@GiteaBot GiteaBot added this to the 1.23.0 milestone Apr 12, 2024
@GiteaBot GiteaBot added backport/done All backports for this PR have been created and removed reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. labels Apr 12, 2024
zjjhot added a commit to zjjhot/gitea that referenced this pull request Apr 12, 2024
* giteaofficial/main:
  Change the default maxPerPage for gitbucket (go-gitea#30392)
  Fix the spacing issue in the Project view (go-gitea#30415)
  Add commit status summary table to reduce query from commit status table (go-gitea#30223)
  Split `issue edit` code from `repo-legacy.js` into its own file (go-gitea#30419)
  Check the token's owner and repository when registering a runner (go-gitea#30406)
  Avoid user does not exist error when detecting schedule actions when the commit author is an external user (go-gitea#30357)
  Update actions variables documents (go-gitea#30394)
  Fix author name alignment in commits table (go-gitea#30396)
silverwind pushed a commit that referenced this pull request Apr 12, 2024
@yp05327
Copy link
Contributor

yp05327 commented Apr 12, 2024

@HEREYUA @lunny
Didn't link to the issue correctly. Can you fix the description?

@silverwind
Copy link
Member

silverwind commented Apr 12, 2024

Likely because GitHub couldn't parse this correctly:

**fix**:  [#30388](https://github.com/go-gitea/gitea/issues/30388)

I recommend using Fixes: <link> instead.

@HEREYUA
Copy link
Contributor Author

HEREYUA commented Apr 12, 2024

updated

@silverwind
Copy link
Member

silverwind commented Apr 12, 2024

Always use absolute links instead of #1234 because those will not work if the repo is hosted somewhere else than GitHub. I edited just for the sake of correctness:

Fixes: https://github.com/go-gitea/gitea/issues/30388

silverwind added a commit to silverwind/gitea that referenced this pull request Apr 13, 2024
* origin/main: (1540 commits)
  Add `interface{}` to `any` replacement to `make fmt`, exclude `*.pb.go` (go-gitea#30461)
  Fix network error when open/close organization/individual projects and redirect to project page (go-gitea#30387)
  Avoid losing token when updating mirror settings (go-gitea#30429)
  Fix label rendering (go-gitea#30456)
  Add comment for ContainsRedirectURI about the exact match (go-gitea#30457)
  Update JS and PY deps, lock eslint and related plugins (go-gitea#30452)
  Refactor cache and disable go-chi cache (go-gitea#30417)
  Fix admin notice view-detail (go-gitea#30450)
  Fix mirror error when mirror repo is empty (go-gitea#30432)
  Add `/public/assets/img/webpack` to ignore files again (go-gitea#30451)
  Lock a few tool dependencies to major versions (go-gitea#30439)
  Fix commit status cache which missed target_url (go-gitea#30426)
  Remove jQuery from the commit graph (except Fomantic) (go-gitea#30395)
  Fix rename branch 500 when the target branch is deleted but exist in database (go-gitea#30430)
  Limit the max line length when parsing git grep output (go-gitea#30418)
  Change the default maxPerPage for gitbucket (go-gitea#30392)
  Fix the spacing issue in the Project view (go-gitea#30415)
  Add commit status summary table to reduce query from commit status table (go-gitea#30223)
  Split `issue edit` code from `repo-legacy.js` into its own file (go-gitea#30419)
  Check the token's owner and repository when registering a runner (go-gitea#30406)
  ...
@wxiaoguang wxiaoguang added the skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. label Apr 27, 2024
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Jul 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport/done All backports for this PR have been created backport/v1.22 This PR should be backported to Gitea 1.22 lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. modifies/templates This PR modifies the template files size/S Denotes a PR that changes 10-29 lines, ignoring generated files. skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No padding between buttons and above line in Project view UI.
6 participants