mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 16:25:49 +08:00
1 parent
3d3220a0ad
commit
3bed2bfe77
4 files changed
+8
-6
No files matched your search
@@ -47,6 +47,7 @@
|
||||
.document-tabs {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
overflow-x: auto;
|
||||
scrollbar-width: none;
|
||||
align-items: stretch;
|
||||
@@ -58,7 +59,7 @@
|
||||
flex: 0 0 210px;
|
||||
width: 210px;
|
||||
min-width: 100px;
|
||||
max-width: 240px;
|
||||
max-width: min(240px, 100%);
|
||||
gap: 8px;
|
||||
padding: 0 8px 0 12px;
|
||||
border: 0;
|
||||
|
||||
@@ -1720,7 +1720,7 @@ el.pageInput.addEventListener("change", () => {
|
||||
});
|
||||
window.addEventListener("resize", resizeViewer);
|
||||
window.addEventListener("resize", () => {
|
||||
for (const tabs of document.querySelectorAll(".panel-tabs")) revealPanelTab(tabs);
|
||||
for (const tabs of document.querySelectorAll(".panel-tabs, .document-tabs")) revealPanelTab(tabs);
|
||||
});
|
||||
window.addEventListener("blur", () => endPan());
|
||||
COMPACT_LAYOUT.addEventListener("change", syncLayoutMode);
|
||||
@@ -2399,6 +2399,7 @@ function applyTitleBarInfo(info) {
|
||||
}
|
||||
el.documentTitleBar.dataset.active = String(info.active);
|
||||
el.documentTitleBar.dataset.maximized = String(info.maximized);
|
||||
revealPanelTab(el.documentTabs);
|
||||
updateTitleBarRegions();
|
||||
}
|
||||
|
||||
@@ -2542,7 +2543,7 @@ function renderDocumentTabs() {
|
||||
});
|
||||
el.documentTabs.append(item);
|
||||
}
|
||||
el.documentTabs.querySelector('[data-selected="true"]')?.scrollIntoView({block: "nearest", inline: "nearest"});
|
||||
revealPanelTab(el.documentTabs);
|
||||
updateTitleBarRegions();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user