mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 08:46:55 +08:00
1 parent
b680f0bc27
commit
9cb3a898c4
2 files changed
+15
-2
No files matched your search
@@ -48,6 +48,7 @@
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
padding-right: 1px;
|
||||
overflow-x: auto;
|
||||
scrollbar-width: none;
|
||||
align-items: stretch;
|
||||
@@ -111,6 +112,18 @@
|
||||
background: var(--accent-soft);
|
||||
}
|
||||
|
||||
.document-new-tab {
|
||||
flex-basis: var(--titlebar-height, 36px);
|
||||
width: var(--titlebar-height, 36px);
|
||||
min-width: var(--titlebar-height, 36px);
|
||||
align-self: stretch;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.document-new-tab:focus-visible {
|
||||
outline-offset: -2px;
|
||||
}
|
||||
|
||||
.document-title-drag {
|
||||
flex: 1;
|
||||
min-width: 32px;
|
||||
|
||||
@@ -6447,8 +6447,8 @@ function revealPanelTab(container) {
|
||||
const selected = container.querySelector('[data-selected="true"]');
|
||||
if (!selected || !container.clientWidth) return;
|
||||
const box = selected.getBoundingClientRect(), viewport = container.getBoundingClientRect();
|
||||
if (box.left < viewport.left) container.scrollLeft -= viewport.left - box.left;
|
||||
else if (box.right > viewport.right) container.scrollLeft += box.right - viewport.right;
|
||||
if (box.left < viewport.left) container.scrollLeft -= Math.ceil(viewport.left - box.left);
|
||||
else if (box.right > viewport.right) container.scrollLeft += Math.ceil(box.right - viewport.right);
|
||||
}
|
||||
|
||||
function renderPanelTabs(container, choices, value, change) {
|
||||
|
||||
Reference in new issue
Block a user