fix(float): 宿主缩放手柄不再被 tab 内容压住
浮动 Git tab 的右下角 20×20 手柄([data-dockkit-float-resize])是浮窗的 最后一个子节点,但宿主给它 z-index: auto;Git footer 的 sticky + z-index:1 正好盖在角上,手柄既看不见也点不到,整个浮窗无法用指针缩放。实测文件 tab 的浮窗正常(底部没有 stacking 栏),只有带底栏的 tab 中招。 - 把宿主手柄抬到 z-index:2:覆盖第三方 tab 内容,不依赖插件自己的底栏; - 收掉 .gitFooter 的 z-index:sticky + 定位已足够压在滚动行之上,这一层 在没有该宿主属性的版本上也成立; - tests/float-resize-grip.spec.ts 钉住两条(含 z-index 必须 > 1)。
This commit is contained in:
1 parent
0fab0afdbb
commit
9bece137e1
3 files changed
+66
-2
No files matched your search
@@ -62,8 +62,12 @@
|
||||
|
||||
/* Docked by the flex column above (a sibling of `.gitScroll`), plus sticky so
|
||||
it also survives the case where the host tab body itself scrolls the whole
|
||||
tab — the branch control must never leave the bottom of the pane. */
|
||||
.gitFooter { flex: none; min-width: 0; position: sticky; bottom: 0; z-index: 1; border-top: 1px solid var(--dsw-alias-border-l1); background: var(--dsw-alias-bg-base); }
|
||||
tab — the branch control must never leave the bottom of the pane.
|
||||
NO z-index: in a floating window the host's resize grip is the last child
|
||||
at `z-index: auto`, so a stacking footer paints over the bottom-right
|
||||
corner and makes the grip un-hittable. Sticky (positioned) already paints
|
||||
above the scrolled rows. */
|
||||
.gitFooter { flex: none; min-width: 0; position: sticky; bottom: 0; border-top: 1px solid var(--dsw-alias-border-l1); background: var(--dsw-alias-bg-base); }
|
||||
.footerRow { display: flex; align-items: center; min-width: 0; min-height: 28px; }
|
||||
|
||||
/* A failed remote op reports above the branch row and git's stderr can be long:
|
||||
|
||||
Reference in new issue
Block a user