0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-01-20 10:54:32 +01:00
This commit is contained in:
Kerwin Bryant 2025-01-16 01:22:25 +00:00
parent 0aa1b867dd
commit 7179916402
2 changed files with 5 additions and 0 deletions

View File

@ -73,6 +73,9 @@
gap: 8px;
max-height: 100vh;
overflow: hidden;
position: sticky;
top: 14px;
z-index: 8;
}
.repo-grid-tree-sidebar .view-file-tree-sidebar-top {

View File

@ -2,6 +2,7 @@ import {createApp, ref} from 'vue';
import {toggleElem} from '../utils/dom.ts';
import {GET, PUT} from '../modules/fetch.ts';
import ViewFileTree from '../components/ViewFileTree.vue';
import {initMarkupContent} from '../markup/content.ts';
import {initTargetRepoBranchTagSelector} from './repo-legacy.ts';
import {initTargetDropdown} from './common-page.ts';
import {initTargetRepoEllipsisButton} from './repo-commit.ts';
@ -58,6 +59,7 @@ function reloadContentScript(contentEl: Element) {
contentEl.querySelector('.show-tree-sidebar-button').addEventListener('click', () => {
toggleSidebar(true, document.querySelector('.repo-view-file-tree-sidebar').hasAttribute('data-is-signed'));
});
initMarkupContent();
initTargetButtons(contentEl);
initTargetDropdown(contentEl);
initTargetPdfViewer(contentEl);