Skip to content

Commit 2bf7e26

Browse files
authored
ENG-1084 - initial implementation of tldraw Clipboard (Roam) (#569)
* init * revert roamjs-components update * add grouping * fix lints * add drag and drop * improve drag and drop image * prevent navigation during drag operations * Add store version tracking for clipboard updates on shape changes * update cursor styles for draggable groups * move from localstorage to block props * refactor color handling in Clipboard and DiscourseNodeUtil components to use getDiscourseNodeColors utility * adjust sizing to zoom level * Add customDefaultToolbar and move clipboard button beside lock - temporarily disabled WIP * Implement scrollable container detection for clipboard bounding rectangle * pnpm-lock * . * move icon back to custom toolbar * tldraw patch for custom toolbar * . * review * error emails
1 parent 050eaa1 commit 2bf7e26

File tree

9 files changed

+1368
-58
lines changed

9 files changed

+1368
-58
lines changed

apps/roam/src/components/canvas/CanvasDrawer.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -450,21 +450,23 @@ export const CanvasDrawerPanel = () => {
450450
style={{
451451
top: "3.25rem",
452452
height: "calc(100% - 50px)",
453-
454453
zIndex: 250,
455454
boxShadow:
456455
"0px 0px 2px hsl(0, 0%, 0%, 16%), 0px 2px 3px hsl(0, 0%, 0%, 24%), 0px 2px 6px hsl(0, 0%, 0%, 0.1), inset 0px 0px 0px 1px hsl(0, 0%, 100%)",
457456
}}
458457
>
459-
<div className="flex max-h-10 flex-shrink-0 items-center rounded-lg bg-white px-1">
458+
<div
459+
className="flex max-h-10 flex-shrink-0 items-center rounded-lg bg-white px-1"
460+
style={{ minHeight: "35px" }}
461+
>
460462
<div className="flex-shrink-0">
461463
<Button
462464
icon={<Icon icon="add-column-left" />}
463465
onClick={() => setIsOpen(false)}
464466
minimal
465467
/>
466468
</div>
467-
<h2 className="m-0 flex-1 border-b border-gray-300 pb-1 text-center text-sm font-semibold leading-tight">
469+
<h2 className="m-0 flex-1 pb-1 text-center text-sm font-semibold leading-tight">
468470
Canvas Drawer
469471
</h2>
470472
<div className="flex-shrink-0">

0 commit comments

Comments
 (0)