mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-24 09:38:29 +02:00
Tweak sidebar drag resizer
This commit is contained in:
@@ -388,7 +388,7 @@ function ResizeBar({ onResizeStart, onReset, isResizing }: ResizeBarProps) {
|
|||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
aria-hidden
|
aria-hidden
|
||||||
className="group absolute z-10 right-0 w-3 top-0 bottom-0 flex justify-end cursor-ew-resize"
|
className="group absolute z-10 -right-0.5 w-3 top-0 bottom-0 flex justify-end cursor-ew-resize"
|
||||||
onMouseDown={onResizeStart}
|
onMouseDown={onResizeStart}
|
||||||
onDoubleClick={onReset}
|
onDoubleClick={onReset}
|
||||||
>
|
>
|
||||||
@@ -396,7 +396,7 @@ function ResizeBar({ onResizeStart, onReset, isResizing }: ResizeBarProps) {
|
|||||||
{isResizing && <div className="fixed inset-0 cursor-ew-resize" />}
|
{isResizing && <div className="fixed inset-0 cursor-ew-resize" />}
|
||||||
<div // drag-divider
|
<div // drag-divider
|
||||||
className={classnames(
|
className={classnames(
|
||||||
'transition-colors w-1 group-hover:bg-highlight h-full pointer-events-none',
|
'transition-colors w-1 mr-0.5 group-hover:bg-highlight h-full pointer-events-none',
|
||||||
isResizing && '!bg-blue-500/70',
|
isResizing && '!bg-blue-500/70',
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user