diff options
| author | Daniel Polito <[email protected]> | 2026-01-01 21:26:34 -0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-01-01 18:26:34 -0600 |
| commit | 680db7b9e4a9dbcaadbd25cf2220fb5d7f538c05 (patch) | |
| tree | 935dc9c0743fe7ac45070e9a991a043716b96842 /packages/ui/src/components/resize-handle.css | |
| parent | 7aa1dbe8731c687e09401e9a59a19ebd380182b5 (diff) | |
| download | opencode-680db7b9e4a9dbcaadbd25cf2220fb5d7f538c05.tar.gz opencode-680db7b9e4a9dbcaadbd25cf2220fb5d7f538c05.zip | |
Desktop: Improve Resize Handle (#6608)
Diffstat (limited to 'packages/ui/src/components/resize-handle.css')
| -rw-r--r-- | packages/ui/src/components/resize-handle.css | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/packages/ui/src/components/resize-handle.css b/packages/ui/src/components/resize-handle.css index 9344402c6..088bf9215 100644 --- a/packages/ui/src/components/resize-handle.css +++ b/packages/ui/src/components/resize-handle.css @@ -2,12 +2,33 @@ position: absolute; z-index: 10; + &::after { + content: ""; + position: absolute; + background-color: var(--color-border-strong-base); + opacity: 0; + transition: opacity 0.15s ease-in-out; + border-radius: 2px; + } + + &:hover::after, + &:active::after { + opacity: 1; + } + &[data-direction="horizontal"] { inset-block: 0; inset-inline-end: 0; width: 8px; transform: translateX(50%); cursor: ew-resize; + + &::after { + width: 3px; + inset-block: 0; + inset-inline-start: 50%; + transform: translateX(-50%); + } } &[data-direction="vertical"] { @@ -16,5 +37,12 @@ height: 8px; transform: translateY(-50%); cursor: ns-resize; + + &::after { + height: 3px; + inset-inline: 0; + inset-block-start: 50%; + transform: translateY(-50%); + } } } |
