From 2a799cf9e0802f592f86749864197b2c404d0120 Mon Sep 17 00:00:00 2001 From: DrMint Date: Fri, 27 May 2022 13:10:19 +0200 Subject: [PATCH] Improved editor --- src/components/Inputs/Button.tsx | 6 +- .../PanelComponents/ReturnButton.tsx | 1 - src/pages/dev/editor.tsx | 411 +++++++++++------- 3 files changed, 251 insertions(+), 167 deletions(-) diff --git a/src/components/Inputs/Button.tsx b/src/components/Inputs/Button.tsx index 3cfce30..bc19948 100644 --- a/src/components/Inputs/Button.tsx +++ b/src/components/Inputs/Button.tsx @@ -38,8 +38,8 @@ export function Button(props: Immutable): JSX.Element { draggable={draggable} id={id} onClick={onClick} - className={`--opacityBadge:100 grid select-none place-content-center - place-items-center rounded-full border-[1px] border-dark px-4 pt-[0.4rem] + className={`--opacityBadge:100 grid select-none grid-flow-col place-content-center + place-items-center gap-2 rounded-full border-[1px] border-dark px-4 pt-[0.4rem] pb-[0.5rem] text-dark transition-all hover:[--opacityBadge:0] ${className} ${ active ? "cursor-not-allowed !border-black bg-black text-light drop-shadow-black-lg" @@ -56,7 +56,7 @@ export function Button(props: Immutable): JSX.Element { )} {icon && } -

{text}

+ {text &&

{text}

} ); diff --git a/src/components/PanelComponents/ReturnButton.tsx b/src/components/PanelComponents/ReturnButton.tsx index 2eef3de..5d4a9ff 100644 --- a/src/components/PanelComponents/ReturnButton.tsx +++ b/src/components/PanelComponents/ReturnButton.tsx @@ -36,7 +36,6 @@ export function ReturnButton(props: Immutable): JSX.Element {