Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
LiveDuo committed Nov 8, 2023
1 parent 145e13a commit 6e675a7
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions lib/client/vanilla/editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ function Editor({ standaloneServer = false }) {
{getComponents().indexOf(hoveredComponent!) > 0 && (
<ArrowUpIcon ref={moveUpRef} onClick={onComponentMoveUp} className="h-7 w-7 text-white p-1" />
)}
<TrashIcon id={'delete'} ref={deleteRef} onClick={onComponentDelete} className="h-7 w-7 text-white p-1" />
<TrashIcon id="delete" ref={deleteRef} onClick={onComponentDelete} className="h-7 w-7 text-white p-1" />
</div>
</div>
)}
Expand Down Expand Up @@ -411,28 +411,28 @@ function Editor({ standaloneServer = false }) {
</button>
)}
</div>
<ImageDialog
open={openImage}
setOpen={setOpenImage}
selectedElement={selectedElement as unknown as HTMLImageElement}
baseUrl={getBaseUrl(standaloneServer)}
/>
<ButtonDialog
open={openButton}
setOpen={setOpenButton}
selectedElement={selectedElement as unknown as HTMLButtonElement}
/>
<LinkDialog
open={openLink}
setOpen={setOpenLink}
selectedElement={selectedElement as unknown as HTMLAnchorElement}
/>
<SvgDialog
open={openSvg}
setOpen={setOpenSvg}
selectedElement={selectedElement as unknown as SVGTextPathElement}
/>
<div className="flex justify-center h-fit bg-gray-200 overflow-y-scroll">
<ImageDialog
open={openImage}
setOpen={setOpenImage}
selectedElement={selectedElement as unknown as HTMLImageElement}
baseUrl={getBaseUrl(standaloneServer)}
/>
<ButtonDialog
open={openButton}
setOpen={setOpenButton}
selectedElement={selectedElement as unknown as HTMLButtonElement}
/>
<LinkDialog
open={openLink}
setOpen={setOpenLink}
selectedElement={selectedElement as unknown as HTMLAnchorElement}
/>
<SvgDialog
open={openSvg}
setOpen={setOpenSvg}
selectedElement={selectedElement as unknown as SVGTextPathElement}
/>
<div
id="editor"
ref={canvasRef}
Expand All @@ -449,7 +449,7 @@ function Editor({ standaloneServer = false }) {
minHeight: '1024px', // no tailwind class
}}
contentEditable={!isPreview}
></div>
/>
</div>
</div>
</div>
Expand Down

0 comments on commit 6e675a7

Please sign in to comment.