forked from gitea/gitea
1
0
Fork 0
gitea/templates
Giteabot 51789ba12d
Improve wiki sidebar and TOC (#25460) (#25477)
Backport #25460 by @wxiaoguang

Close #20976
Close #20975

1. Fix the bug: the TOC in footer was incorrectly rendered as main
content's TOC
2. Fix the layout: on mobile, the TOC is put above the main content,
while the sidebar is put below the main content
3. Auto collapse the TOC on mobile

ps: many styles of "wiki.css" are moved from old css files, so leave
nits to following PRs.

### for desktop


![image](https://github.com/go-gitea/gitea/assets/2114189/6c84201c-0648-465a-99e6-c53cdaee53c0)

### for mobile


![image](https://github.com/go-gitea/gitea/assets/2114189/9cb4fdfe-b6ab-4e6f-ae82-219ddb8fa27e)

### other changed pages

<details>


![image](https://github.com/go-gitea/gitea/assets/2114189/ef077736-2c3e-4e3d-82fe-d9bf1ebcca98)


![image](https://github.com/go-gitea/gitea/assets/2114189/bb528429-ad5f-4258-a5c4-05f997c624ea)

</details>

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2023-06-24 10:16:15 +08:00
..
admin Refactor path & config system (#25330) (#25416) 2023-06-22 16:27:18 +00:00
api/packages/pypi Remove incorrect HTML self close tag (#23748) 2023-03-27 18:05:51 +02:00
base Button and color enhancements (#24989) (#25176) 2023-06-11 02:13:08 +00:00
code Use data-tooltip-content for tippy tooltip (#23649) 2023-03-24 18:35:38 +08:00
custom Add footer extra links template (#9576) 2020-01-03 20:41:56 +02:00
devtest Use flex to align SVG and text (#25163) (#25260) 2023-06-14 13:21:48 -04:00
explore Fix repo search broken because of profile page added (#25455) (#25467) 2023-06-23 15:48:35 +02:00
mail Remove incorrect HTML self close tag (#23748) 2023-03-27 18:05:51 +02:00
org Button and color enhancements (#24989) (#25176) 2023-06-11 02:13:08 +00:00
package Fix dropdown icon layout on diff page (#25397) (#25403) 2023-06-21 10:55:11 +08:00
projects Remove test string (#25447) (#25448) 2023-06-22 17:30:51 +00:00
repo Improve wiki sidebar and TOC (#25460) (#25477) 2023-06-24 10:16:15 +08:00
shared Various UI fixes (#25264) (#25431) 2023-06-22 10:19:38 +00:00
status Show OAuth2 errors to end users (#25261) (#25271) 2023-06-15 02:48:36 +00:00
swagger fix swagger documentation for multiple files API endpoint (#25110) 2023-06-07 23:49:58 +08:00
user Various UI fixes (#25264) (#25431) 2023-06-22 10:19:38 +00:00
home.tmpl Improve home page template, fix Sort dropdown menu flash (#23856) 2023-04-01 13:47:54 +08:00
install.tmpl Use "utf8mb4" for MySQL by default (#25432) 2023-06-22 07:38:23 +02:00
post-install.tmpl Remove incorrect element ID on "post-install" page (#25104) (#25129) 2023-06-08 11:22:32 +00:00