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

feat(pr review): add more space on mobile #21326

Merged

Conversation

kolaente
Copy link
Member

@kolaente kolaente commented Oct 3, 2022

This PR adds more space to the review screen on mobile so that comments are more readable and less "squashed" an smaller screens.

Before:

Screen Shot 2022-10-03 at 17 12 26

After:

Screen Shot 2022-10-03 at 17 10 15

@techknowlogick techknowlogick added type/enhancement An improvement of existing functionality topic/ui Change the appearance of the Gitea UI labels Oct 3, 2022
@techknowlogick techknowlogick added this to the 1.18.0 milestone Oct 3, 2022
@@ -1165,6 +1171,10 @@
box-shadow: none;
}
}

@media @mediaSm {
padding: 1rem 0 !important;
Copy link
Member

Choose a reason for hiding this comment

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

Why important?
Because other (fomantic?) style classes interfere otherwise?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes.

Copy link
Member

Choose a reason for hiding this comment

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

I'd still like a comment here.
As someone (I don't know anymore who) said, it's probably a good idea to force comments explaining !importants, simply so that at some point it can be easily determined if they are still needed.

Copy link
Member Author

Choose a reason for hiding this comment

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

Makes sense, added!

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Oct 3, 2022
@wxiaoguang
Copy link
Contributor

What happens if the "commented 23 minutes ago" becomes a longer text? especially in other languages.

If there is no general solution for the layout, the margin and padding game don't look like a good solution IMO ......

@kolaente
Copy link
Member Author

@wxiaoguang but that's nothing I changed explicitly in this pr? I think this is a problem worth tackling but more generally outside of the scope of this pr.

@wxiaoguang
Copy link
Contributor

Hmm ... at first glance, the only difference I can see is the "commented 23 minutes ago" changed its position .......

@kolaente
Copy link
Member Author

That happened, but it wasn't the primary goal of this PR. Check the width and alignment of the comments and events.

@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 Oct 10, 2022
@@ -1165,6 +1171,10 @@
box-shadow: none;
}
}

@media @mediaSm {
padding: 1rem 0 !important;
Copy link
Member

Choose a reason for hiding this comment

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

I'd still like a comment here.
As someone (I don't know anymore who) said, it's probably a good idea to force comments explaining !importants, simply so that at some point it can be easily determined if they are still needed.

@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 Oct 10, 2022
@techknowlogick techknowlogick merged commit d8a80b0 into go-gitea:main Oct 11, 2022
zjjhot added a commit to zjjhot/gitea that referenced this pull request Oct 13, 2022
* upstream/main: (25 commits)
  [skip ci] Updated translations via Crowdin
  Respect user's locale when rendering the date range in the repo activity page (go-gitea#21410)
  Consolidate more CSS colors into variables (go-gitea#21402)
  Add HEAD fix to gitea doctor (go-gitea#21352)
  Contribution guidelines (go-gitea#21425)
  Refactor Gitpod configuration to improve quick spin up of automated dev environments (go-gitea#21411)
  Support instance-wide OAuth2 applications (go-gitea#21335)
  Case-insensitive NuGet symbol file GUID (go-gitea#21409)
  Add generic set type (go-gitea#21408)
  Improve OAuth integration tests (go-gitea#21390)
  Make e-mail sanity check more precise (go-gitea#20991)
  Fix broken link to frontend guidelines in hacking guidelines (go-gitea#21382)
  Use Name instead of DisplayName in LFS Lock (go-gitea#21415)
  [skip ci] Updated translations via Crowdin
  feat(pr review): add more space on mobile (go-gitea#21326)
  Bump `golang.org/x/text` (go-gitea#21412)
  Update gitea.service (go-gitea#21399)
  Do DB update after merge in hammer context (go-gitea#21401)
  add gitpod config (go-gitea#20995)
  Remove cancel button in repo creation page (go-gitea#21381)
  ...
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. topic/ui Change the appearance of the Gitea UI type/enhancement An improvement of existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants