Skip to content

Commit dd11ebf

Browse files
authored
fix: sticky collapse icon (#6647)
1 parent 0c35e19 commit dd11ebf

File tree

1 file changed

+16
-14
lines changed
  • web/core/components/stickies/sticky

1 file changed

+16
-14
lines changed

web/core/components/stickies/sticky/root.tsx

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -81,23 +81,25 @@ export const StickyNote = observer((props: TProps) => {
8181
>
8282
{/* {isStickiesPage && <StickyItemDragHandle isDragging={false} />}{" "} */}
8383
{onClose && (
84-
<button type="button" className="flex w-full" onClick={onClose}>
85-
<Minimize2 className="size-4 m-auto mr-0" />
84+
<button type="button" className="flex-shrink-0 flex justify-end p-2.5" onClick={onClose}>
85+
<Minimize2 className="size-4" />
8686
</button>
8787
)}
8888
{/* inputs */}
89-
<StickyInput
90-
stickyData={stickyData}
91-
workspaceSlug={workspaceSlug}
92-
handleUpdate={(payload) => {
93-
handleLayout?.();
94-
debouncedFormSave(payload);
95-
}}
96-
stickyId={stickyId}
97-
handleDelete={() => setIsDeleteModalOpen(true)}
98-
handleChange={handleChange}
99-
showToolbar={showToolbar}
100-
/>
89+
<div className="-mt-2">
90+
<StickyInput
91+
stickyData={stickyData}
92+
workspaceSlug={workspaceSlug}
93+
handleUpdate={(payload) => {
94+
handleLayout?.();
95+
debouncedFormSave(payload);
96+
}}
97+
stickyId={stickyId}
98+
handleDelete={() => setIsDeleteModalOpen(true)}
99+
handleChange={handleChange}
100+
showToolbar={showToolbar}
101+
/>
102+
</div>
101103
</div>
102104
</>
103105
);

0 commit comments

Comments
 (0)