Disable line wrap #8718

Open
opened 2025-11-02 08:15:29 -06:00 by GiteaMirror · 8 comments
Owner

Originally created by @nep-0 on GitHub (Mar 18, 2022).

Code preview could look better on small screens when line wrap is disabled.

I think we are happy to see the option here: /user/settings/appearance

Originally created by @nep-0 on GitHub (Mar 18, 2022). Code preview could look better on small screens when line wrap is disabled. I think we are happy to see the option here: `/user/settings/appearance`
GiteaMirror added the topic/uitype/proposal labels 2025-11-02 08:15:29 -06:00
Author
Owner

@silverwind commented on GitHub (Mar 19, 2022):

Could be a toggle in the file's header that is remembered for all files afterwards. As for option storage, I think there might be a small preference to store this per-browser in localStorage instead of per-user because the same user might prefer wrapping on desktop, but no wrapping on mobile, for example.

@silverwind commented on GitHub (Mar 19, 2022): Could be a toggle in the file's header that is remembered for all files afterwards. As for option storage, I think there might be a small preference to store this per-browser in localStorage instead of per-user because the same user might prefer wrapping on desktop, but no wrapping on mobile, for example.
Author
Owner

@luwol03 commented on GitHub (Mar 19, 2022):

What about a config system where you can override your profiles default via local storage? Because otherwise you always have to change that if you're using a new browser (other pc, private tab,...)

@luwol03 commented on GitHub (Mar 19, 2022): What about a config system where you can override your profiles default via local storage? Because otherwise you always have to change that if you're using a new browser (other pc, private tab,...)
Author
Owner

@silverwind commented on GitHub (Mar 21, 2022):

It should be possible to keep a config in localStorage and sync that to the server on change. On load, check if localStorage data is present and use it, falling back to server data otherwise.

Also needs a mechanism to merge in new config options. Maybe there is a JS library out that that does both.

@silverwind commented on GitHub (Mar 21, 2022): It should be possible to keep a config in localStorage and sync that to the server on change. On load, check if localStorage data is present and use it, falling back to server data otherwise. Also needs a mechanism to merge in new config options. Maybe there is a JS library out that that does both.
Author
Owner

@KaKi87 commented on GitHub (Feb 21, 2023):

Hello,
Any news on this ?
Thanks

@KaKi87 commented on GitHub (Feb 21, 2023): Hello, Any news on this ? Thanks
Author
Owner

@ezorzin commented on GitHub (Jul 16, 2024):

Any news?

@ezorzin commented on GitHub (Jul 16, 2024): Any news?
Author
Owner

@KaKi87 commented on GitHub (Jul 16, 2024):

I added this feature to my userscript.

@KaKi87 commented on GitHub (Jul 16, 2024): I added this feature to [my userscript](https://git.kaki87.net/KaKi87/userscripts/src/branch/master/enhancementsForForgejo/README.md).
Author
Owner

@ezorzin commented on GitHub (Jul 16, 2024):

@KaKi87 how does that apply to Gitea?

@ezorzin commented on GitHub (Jul 16, 2024): @KaKi87 how does that apply to Gitea?
Author
Owner

@KaKi87 commented on GitHub (Jul 16, 2024):

It's an actual solution for users tired of still waiting after 2 and a half years for this simple feature.

@KaKi87 commented on GitHub (Jul 16, 2024): It's an actual solution for users tired of still waiting after 2 and a half years for this simple feature.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#8718