mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-12 16:35:12 +02:00
change loading
This commit is contained in:
parent
158b79e40a
commit
143249f4f1
@ -59,7 +59,5 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="view-file-tree-sidebar-bottom">
|
||||
<div id="view-file-tree" class="center" data-api-base-url="{{.RepoLink}}" data-tree-path="{{$.TreePath}}">
|
||||
{{svg "octicon-sync" 16 "job-status-rotate"}}
|
||||
</div>
|
||||
<div id="view-file-tree" class="is-loading" data-api-base-url="{{.RepoLink}}" data-tree-path="{{$.TreePath}}"></div>
|
||||
</div>
|
||||
|
@ -62,6 +62,10 @@
|
||||
grid-row: 1 / 4;
|
||||
}
|
||||
|
||||
#view-file-tree.is-loading {
|
||||
aspect-ratio: 5.415; /* the size is about 790 x 145 */
|
||||
}
|
||||
|
||||
.repo-grid-tree-sidebar .repo-view-file-tree-sidebar {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
@ -66,7 +66,7 @@ export async function initViewFileTreeSidebar() {
|
||||
|
||||
const files = await loadChildren({path: treePath}, true);
|
||||
|
||||
fileTree.classList.remove('center');
|
||||
fileTree.classList.remove('is-loading');
|
||||
const fileTreeView = createApp(ViewFileTree, {files, selectedItem, loadChildren, loadContent: (item) => {
|
||||
window.history.pushState(null, null, item.htmlUrl);
|
||||
selectedItem.value = item.path;
|
||||
|
Loading…
x
Reference in New Issue
Block a user