Skip to content

AI media harness for planning, generating, and editing locally

TypeScript

Splitter accent waits 400ms on hover; drag and focus still light it at once

Bittia611bfbd6278
diff --git a/src/styles/ui.css b/src/styles/ui.css
index 264f35b..52a9173 100644
--- a/src/styles/ui.css
+++ b/src/styles/ui.css
@@ -462,6 +462,7 @@
position: absolute;
background: var(--line);
transition: background-color var(--motion-fast) linear;
+ transition-property: background-color, left, width, top, height;
}
.ui-splitter--vertical::before {
@@ -496,6 +497,21 @@
height: 2px;
}
+/* Passing over the line should not light it: the hover accent waits 400ms,
+ so it only shows when the pointer rests there. Leaving clears it at once,
+ and a drag or keyboard focus shows it immediately. The resize cursor still
+ appears straight away. */
+.ui-splitter:hover::before {
+ transition-delay: 400ms;
+}
+
+/* none, not a zero delay: it also cancels a hover delay still pending when
+ the drag starts, so the line lights on press. */
+.ui-splitter--dragging::before,
+.ui-splitter:focus-visible::before {
+ transition: none;
+}
+
.ui-splitter[aria-disabled="true"] {
cursor: default;
}