gitea icon indicating copy to clipboard operation
gitea copied to clipboard

Fixes #20625 - Puts wiki header links on the right

Open Eekle opened this issue 2 years ago • 5 comments

Moves header links to the right hand side of the text.

Before:

image

After:

image

Fixes #20625

Eekle avatar Aug 02 '22 11:08 Eekle

I think we want to keep them on the left and we should instead make more space in the box instead, e.g. make the wiki content box render with same/similar horizontal padding as the markdown content box.

silverwind avatar Aug 02 '22 18:08 silverwind

I think we want to keep them on the left and we should instead make more space in the box instead, e.g. make the wiki content box render with same/similar horizontal padding as the markdown content box.

Would also work yeah!

I was nervous of approaches that made the render area smaller - it already feels a little cramped with the inclusion of the ToC.

Eekle avatar Aug 02 '22 18:08 Eekle

Yes, area is a bit smaller then on README for example, but there's no hard requirement on how wide a markdown rendering area has to be, so we should strive to get README and wiki rendering to look and feel similar.

silverwind avatar Aug 02 '22 18:08 silverwind

Fair enough. I was slightly surprised that the README and Wiki don't use a shared markdown component.

Eekle avatar Aug 02 '22 19:08 Eekle

Fair enough. I was slightly surprised that the README and Wiki don't use a shared markdown component.

That would actually be a very good refactor for later.

silverwind avatar Aug 02 '22 19:08 silverwind

https://github.com/go-gitea/gitea/pull/23750 includes a fix that adds more padding while keeping the link on left.

silverwind avatar Apr 02 '23 22:04 silverwind