Skip to content

Commit

Permalink
Add visual feedback on Sidebar resize handle mouse down.
Browse files Browse the repository at this point in the history
  • Loading branch information
junhaoliao committed Sep 29, 2024
1 parent 030036e commit 03e3de1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
border-right: 1px solid var(--joy-palette-neutral-outlinedBorder, #cdd7e1);
}

.resize-handle-holding,
.resize-handle:hover {
box-sizing: initial;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ const ResizeHandle = ({

return (
<div
className={"resize-handle"}
className={`resize-handle ${isMouseDown ?
"resize-handle-holding" :
""}`}
onMouseDown={handleMouseDown}/>
);
};
Expand Down

0 comments on commit 03e3de1

Please sign in to comment.