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

Left-Align text in Unicode warning boxes #18331

Merged
merged 4 commits into from
Jan 19, 2022
Merged

Conversation

silverwind
Copy link
Member

Wrapped text is more readable when left-aligned.

Before:
Screen Shot 2022-01-19 at 17 44 05
Screen Shot 2022-01-19 at 17 44 16

After:
Screen Shot 2022-01-19 at 17 44 59
Screen Shot 2022-01-19 at 17 44 51

Wrapped text is more readable when left-aligned.
@silverwind silverwind added the topic/ui Change the appearance of the Gitea UI label Jan 19, 2022
@lafriks lafriks added the skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. label Jan 19, 2022
@lafriks lafriks added this to the 1.16.0 milestone Jan 19, 2022
@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Jan 19, 2022
@delvh
Copy link
Member

delvh commented Jan 19, 2022

Are you sure that it is more readable?
I disagree.
I like the current implementation more.

@silverwind
Copy link
Member Author

It was initially raised in #17562 (comment). I guess two-line content is kind-of okay, but any more lines and it gets harder to read because lines start at different x-positions.

@zeripath
Copy link
Contributor

Yup codeberg specifically asked for this.

I put it in to the PR but it looks like it was removed or merged away.

I think we have to do this.

@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 Jan 19, 2022
@zeripath
Copy link
Contributor

I think codeberg wanted other messages to be left aligned too - I think originally my PR also covered those too.

@zeripath zeripath merged commit f19f53c into go-gitea:main Jan 19, 2022
@silverwind silverwind deleted the warn-left branch January 19, 2022 23:26
zjjhot pushed a commit to zjjhot/gitea that referenced this pull request Jan 20, 2022
* 'main' of https://github.com/go-gitea/gitea:
  Change initial TrustModel to committer (go-gitea#18335)
  refactor httplib (go-gitea#18338)
  Propagate context and ensure git commands run in request context (go-gitea#17868)
  Upgrade Alpine from 3.13 to 3.15 (go-gitea#18050)
  [skip ci] Updated translations via Crowdin
  Stop trimming preceding and suffixing spaces from editor filenames (go-gitea#18334)
  [skip ci] Updated translations via Crowdin
  Left-Align text in Unicode warning boxes (go-gitea#18331)
  Only warn on bidi but still escape non-bidi (go-gitea#18333)
  Fix incorrect OAuth message (go-gitea#18332)
  [skip ci] Updated translations via Crowdin
  Changelog for 1.16.0-rc1 (go-gitea#18309)
Chianina pushed a commit to Chianina/gitea that referenced this pull request Mar 28, 2022
Wrapped text is more readable when left-aligned.

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: zeripath <art27@cantab.net>
@go-gitea go-gitea locked and limited conversation to collaborators Apr 28, 2022
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. skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. topic/ui Change the appearance of the Gitea UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants