0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-05-15 04:13:35 +02:00

fix: use btn-octicon style for TOC toggle button

This commit is contained in:
hamki 2026-01-16 04:44:13 +08:00
parent 47e11c61db
commit 84b344ff61
No known key found for this signature in database
GPG Key ID: 092D4EC7F4DECB68

View File

@ -36,11 +36,7 @@
</div> </div>
<div class="file-header-right file-actions flex-text-block tw-flex-wrap"> <div class="file-header-right file-actions flex-text-block tw-flex-wrap">
{{if .FileSidebarHTML}} {{if .FileSidebarHTML}}
<div class="ui compact icon buttons"> <button class="btn-octicon" id="toggle-sidebar-btn" data-tooltip-content="{{ctx.Locale.Tr "toc"}}">{{svg "octicon-list-unordered" 15}}</button>
<button class="ui mini basic button" id="toggle-sidebar-btn" data-tooltip-content="{{ctx.Locale.Tr "toc"}}">
{{svg "octicon-list-unordered" 15}}
</button>
</div>
{{end}} {{end}}
{{/* this componment is also controlled by frontend plugin renders */}} {{/* this componment is also controlled by frontend plugin renders */}}
<div class="ui compact icon buttons file-view-toggle-buttons {{Iif .HasSourceRenderedToggle "" "tw-hidden"}}"> <div class="ui compact icon buttons file-view-toggle-buttons {{Iif .HasSourceRenderedToggle "" "tw-hidden"}}">