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

Wrapping long lines in code views #1827

Closed
silverwind opened this issue May 28, 2017 · 4 comments · Fixed by #2789
Closed

Wrapping long lines in code views #1827

silverwind opened this issue May 28, 2017 · 4 comments · Fixed by #2789
Labels
topic/ui Change the appearance of the Gitea UI type/enhancement An improvement of existing functionality
Milestone

Comments

@silverwind
Copy link
Member

Currently, Gitea does not wrap long lines of code, making it harder to look at code and diffs that contains lines that extend beyond the screen width.

Is there a general interest in having long lines automatically wrapped? It's a simple CSS tweak (similar to what I've done here for GitHub):

Before:

After:

This might not work too well on small screens, where I think it might be better to not wrap those lines (horizontal scrolling is easier on touch).

@lunny
Copy link
Member

lunny commented May 29, 2017

@silverwind please send a PR.

@lunny lunny added topic/ui Change the appearance of the Gitea UI type/enhancement An improvement of existing functionality labels May 29, 2017
@lunny lunny added this to the 1.x.x milestone May 29, 2017
@appleboy
Copy link
Member

appleboy commented Jun 1, 2017

fixed by #1845

@appleboy appleboy closed this as completed Jun 1, 2017
@lunny lunny modified the milestones: 1.2.0, 1.x.x Jun 1, 2017
@silverwind
Copy link
Member Author

Actually, this one isn't fixed yet. Can you reopen please?

@lunny lunny reopened this Jun 1, 2017
@bkcsoft bkcsoft modified the milestones: 1.3.0, 1.2.0 Jun 15, 2017
lafriks pushed a commit to lafriks-fork/gitea that referenced this issue Oct 26, 2017
lunny pushed a commit that referenced this issue Oct 27, 2017
* Add wrapping to long diff lines to fix #1827

* Fix  css class and make changes to source (less) files

* Fix wrong space indentation

* Fix indentation inconsistencies and remove very old WebKit workaround
vdbt pushed a commit to vdbt/gitea that referenced this issue Oct 27, 2017
* Add wrapping to long diff lines to fix go-gitea#1827

* Fix  css class and make changes to source (less) files

* Fix wrong space indentation

* Fix indentation inconsistencies and remove very old WebKit workaround
@mlthlschr
Copy link

would be great if this could be enabled in normal code views as well (maybe via toggle or config setting). currently working with .Rmd files which contain quite long lines sometimes.

@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
topic/ui Change the appearance of the Gitea UI type/enhancement An improvement of existing functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants