diff --git a/app/components/chat.module.scss b/app/components/chat.module.scss index 99b2d0228c0..6f44320099b 100644 --- a/app/components/chat.module.scss +++ b/app/components/chat.module.scss @@ -101,6 +101,19 @@ width: 100%; margin-bottom: 10px; + &:hover { + .context-drag { + opacity: 1; + } + } + + .context-drag { + display: flex; + align-items: center; + opacity: 0.5; + transition: all ease 0.3s; + } + .context-role { margin-right: 10px; } diff --git a/app/components/home.module.scss b/app/components/home.module.scss index 49ad2bd2278..a90b7fd871f 100644 --- a/app/components/home.module.scss +++ b/app/components/home.module.scss @@ -61,24 +61,36 @@ } } } + + &:hover, + &:active { + .sidebar-drag { + background-color: rgba($color: #000000, $alpha: 0.01); + + svg { + opacity: 0.2; + } + } + } } .sidebar-drag { - $width: 10px; + $width: 14px; position: absolute; top: 0; right: 0; height: 100%; width: $width; - background-color: var(--black); + background-color: rgba($color: #000000, $alpha: 0); cursor: ew-resize; - opacity: 0; transition: all ease 0.3s; + display: flex; + align-items: center; - &:hover, - &:active { - opacity: 0.2; + svg { + opacity: 0; + margin-left: -2px; } } diff --git a/app/components/mask.tsx b/app/components/mask.tsx index 6ff38bc378c..0006793cb21 100644 --- a/app/components/mask.tsx +++ b/app/components/mask.tsx @@ -11,6 +11,7 @@ import CloseIcon from "../icons/close.svg"; import DeleteIcon from "../icons/delete.svg"; import EyeIcon from "../icons/eye.svg"; import CopyIcon from "../icons/copy.svg"; +import DragIcon from "../icons/drag.svg"; import { DEFAULT_MASK_AVATAR, Mask, useMaskStore } from "../store/mask"; import { @@ -214,7 +215,7 @@ function ContextPromptItem(props: { const [focusingInput, setFocusingInput] = useState(false); return ( - + {(provided) => (
{!focusingInput && ( - + <> +
+ +
+ + )} onDragMouseDown(e as any)} - >
+ > + + ); } diff --git a/app/icons/drag.svg b/app/icons/drag.svg new file mode 100644 index 00000000000..a39157c7eb6 --- /dev/null +++ b/app/icons/drag.svg @@ -0,0 +1 @@ +