Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion ui/src/components/nodes/Code.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,17 @@ function MyFloatingToolbar({ id, layout, setLayout }) {
<Box
sx={{ display: "flex", alignItems: "center", justifyContent: "center" }}
>
<Box
className="custom-drag-handle"
sx={{
cursor: "grab",
fontSize: "1.5rem",
padding: "8px",
display: "inline-flex",
}}
>
<DragIndicatorIcon fontSize="inherit" />
</Box>
{!isGuest && (
<Tooltip title="Run (shift-enter)">
<IconButton
Expand Down Expand Up @@ -384,7 +395,15 @@ function MyFloatingToolbar({ id, layout, setLayout }) {
<ViewComfyIcon fontSize="inherit" />
</IconButton>
</Tooltip>
<Box className="custom-drag-handle" sx={{ cursor: "grab" }}>
<Box
className="custom-drag-handle"
sx={{
cursor: "grab",
fontSize: "1.5rem",
padding: "8px",
display: "inline-flex",
}}
>
<DragIndicatorIcon fontSize="inherit" />
</Box>
</Box>
Expand Down
23 changes: 21 additions & 2 deletions ui/src/components/nodes/Rich.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,17 @@ function MyFloatingToolbar({ id }: { id: string }) {
const isGuest = useStore(store, (state) => state.role === "GUEST");
return (
<>
<Box
className="custom-drag-handle"
sx={{
cursor: "grab",
fontSize: "1.5rem",
padding: "8px",
display: "inline-flex",
}}
>
<DragIndicatorIcon fontSize="inherit" />
</Box>
{!isGuest && (
<Tooltip title="Delete">
<IconButton
Expand All @@ -636,8 +647,16 @@ function MyFloatingToolbar({ id }: { id: string }) {
</IconButton>
</Tooltip>
)}
<Box className="custom-drag-handle" sx={{ cursor: "grab" }}>
<DragIndicatorIcon fontSize="small" />
<Box
className="custom-drag-handle"
sx={{
cursor: "grab",
fontSize: "1.5rem",
padding: "8px",
display: "inline-flex",
}}
>
<DragIndicatorIcon fontSize="inherit" />
</Box>
</>
);
Expand Down
21 changes: 20 additions & 1 deletion ui/src/components/nodes/Scope.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,17 @@ function MyFloatingToolbar({ id }: { id: string }) {
alignItems: "center",
}}
>
<Box
className="custom-drag-handle"
sx={{
cursor: "grab",
fontSize: "1.5rem",
padding: "8px",
display: "inline-flex",
}}
>
<DragIndicatorIcon fontSize="inherit" />
</Box>
{!isGuest && (
<Tooltip title="Run (shift-enter)">
<IconButton
Expand Down Expand Up @@ -158,7 +169,15 @@ function MyFloatingToolbar({ id }: { id: string }) {
</IconButton>
</Tooltip>
)}
<Box className="custom-drag-handle" sx={{ cursor: "grab" }}>
<Box
className="custom-drag-handle"
sx={{
cursor: "grab",
fontSize: "1.5rem",
padding: "8px",
display: "inline-flex",
}}
>
<DragIndicatorIcon fontSize="inherit" />
</Box>
</Box>
Expand Down