Skip to content

Commit

Permalink
fix: portal color on dnd
Browse files Browse the repository at this point in the history
  • Loading branch information
sprocketc committed Nov 17, 2022
1 parent c9ab86a commit 56be54e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tldraw/apps/tldraw-logseq/src/hooks/usePaste.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,8 @@ export function usePaste() {
point: [point[0], point[1]],
size: [400, 0], // use 0 here to enable auto-resize
pageId: blockRef,
fill: app.settings.color,
stroke: app.settings.color,
blockType: 'B' as 'B',
},
]
Expand All @@ -324,6 +326,8 @@ export function usePaste() {
point: [point[0], point[1]],
size: [400, 0], // use 0 here to enable auto-resize
pageId: pageName,
fill: app.settings.color,
stroke: app.settings.color,
blockType: 'P' as 'P',
},
]
Expand All @@ -339,6 +343,8 @@ export function usePaste() {
size: [400, 0], // use 0 here to enable auto-resize
point: [point[0], point[1]],
pageId: uuid,
fill: app.settings.color,
stroke: app.settings.color,
blockType: 'B' as 'B',
compact: true,
},
Expand Down

0 comments on commit 56be54e

Please sign in to comment.