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

Adjust the layout of the toolbar on the Issues/Projects page (#33667) #34047

Merged
merged 5 commits into from
Mar 28, 2025

Conversation

wxiaoguang
Copy link
Contributor

@wxiaoguang wxiaoguang commented Mar 28, 2025

And fix layout for mobile

Backport #33667

Fix #33880

@GiteaBot GiteaBot added this to the 1.23.7 milestone Mar 28, 2025
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Mar 28, 2025
@pull-request-size pull-request-size bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Mar 28, 2025
@wxiaoguang wxiaoguang changed the title Adjust the layout of the toolbar on the Issues/Projects page #33667 Adjust the layout of the toolbar on the Issues/Projects page (#33667) Mar 28, 2025
@github-actions github-actions bot added the modifies/templates This PR modifies the template files label Mar 28, 2025
@wxiaoguang wxiaoguang linked an issue Mar 28, 2025 that may be closed by this pull request
@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 Mar 28, 2025
<div class="flex-text-block tw-flex-wrap tw-mb-4">
<h2 class="tw-mb-0">{{.Project.Title}}</h2>
<div class="tw-flex-1"></div>
<div class="ui secondary menu tw-m-0">
Copy link
Member

Choose a reason for hiding this comment

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

This block looks incorrectly intended, it should be on the same level as the empty div above.

Copy link
Contributor Author

@wxiaoguang wxiaoguang Mar 28, 2025

Choose a reason for hiding this comment

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

Actually it is correct, the old code doesn't intend correctly.

To avoid unnecessary changes, I kept it as-is.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

To clarify the change: only this line is deleted.

image

image

Copy link
Member

Choose a reason for hiding this comment

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

No, i mean this:

		<div class="tw-flex-1"></div>
				<div class="ui secondary menu tw-m-0">

Line 2 should dedent, old code did not have the closing </div> tag that you introduced.

Copy link
Contributor Author

@wxiaoguang wxiaoguang Mar 28, 2025

Choose a reason for hiding this comment

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

This line <div class="tw-flex-1"></div> is newly added, it doesn't affect other tags . The newly added line has correct indent

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As I explained above: the only deleted line is <div class="project-toolbar-right"> and its close tag.

You could checkout and check the layout locally.

Copy link
Member

Choose a reason for hiding this comment

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

I don't care enough about intendation on a soon to be obsolete branch and main branch looks correct.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, main branch is correct because I did extra formatting.

This PR is only a backport and has to be done manually, I just don't want to introduce too many other changes

@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 Mar 28, 2025
@wxiaoguang wxiaoguang enabled auto-merge (squash) March 28, 2025 12:17
@wxiaoguang wxiaoguang merged commit 5d81f6d into go-gitea:release/v1.23 Mar 28, 2025
26 checks passed
@wxiaoguang wxiaoguang deleted the backport-project-view branch March 28, 2025 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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/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.

Projects have too little space on mobile for titles
4 participants