Sticky the edit button and formatting tools of the wiki #533
Labels
No labels
accessibility
bug
bug
infrastructure
Codeberg
contributions welcome
docs
duplicate
enhancement
infrastructure
legal
licence / ToS
please chill
we are volunteers
public relations
question
question
user support
s/Forgejo
s/Forgejo/migration
s/Pages
s/Weblate
s/Woodpecker
security
service
upstream
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Codeberg/Community#533
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I use the codeberg wiki a lot. But I wish the formatting tools would stick with the header so I won't have to scroll all the way up to edit the page or select a formatting option.
I'm not sure how to contribute, but I am able to do some frontend dev in the browser :').
The class editor-toolbar needs to become position: sticky, with a top of 1px (on 0 it won't work because of inheritance), with a z-index high enough to make it visible (200 works).
It's then transparant, so it would need a background, and the bottom border should be added.
Adding a bottom border makes it before becoming sticky a double one because the codemirror is styled to have borders all around, so the CodeMirror class should remove it's top border, because the editor toolbar has it in it's bottom.
Long story short, if someone adds this to codeberg.css it would work;
This should ideally go into upstream Gitea, we want to avoid codeberg-specific patches where possible.
@fnetX if they're willing to accept it, I've done my first PR on gitea now, including another issue in their tracker related to sticky scrolling.
https://github.com/go-gitea/gitea/pull/18271
Thanks for working on it. Appreciate your work