From ae8cd7c6e0b0cadb7c7568db791cbb1db840252f Mon Sep 17 00:00:00 2001 From: Brendan Allan Date: Thu, 14 Nov 2024 22:11:08 +0800 Subject: [PATCH] prepare for release --- apps/desktop/src/entry-server.tsx | 2 +- .../src/routes/editor/ConfigSidebar.tsx | 120 +++++++++--------- apps/desktop/src/routes/editor/Editor.tsx | 6 +- 3 files changed, 66 insertions(+), 62 deletions(-) diff --git a/apps/desktop/src/entry-server.tsx b/apps/desktop/src/entry-server.tsx index 39e5e296..462a3c18 100644 --- a/apps/desktop/src/entry-server.tsx +++ b/apps/desktop/src/entry-server.tsx @@ -17,7 +17,7 @@ export default createHandler(() => ( > {assets} - +
{children}
diff --git a/apps/desktop/src/routes/editor/ConfigSidebar.tsx b/apps/desktop/src/routes/editor/ConfigSidebar.tsx index 02cd3df9..70b6091b 100644 --- a/apps/desktop/src/routes/editor/ConfigSidebar.tsx +++ b/apps/desktop/src/routes/editor/ConfigSidebar.tsx @@ -82,9 +82,9 @@ export function ConfigSidebar() { return ( - +
{ const start = angle(); @@ -454,15 +454,17 @@ export function ConfigSidebar() { step={0.1} /> - }> - setProject("camera", "zoom_size", v[0])} - minValue={10} - maxValue={60} - step={0.1} - /> - + {window.FLAGS.zoom && ( + }> + setProject("camera", "zoom_size", v[0])} + minValue={10} + maxValue={60} + step={0.1} + /> + + )} }> - }> - { - console.log("Changing animation style to:", value); - setProject( - "cursor", - "animationStyle", - value as CursorAnimationStyle - ); - }} - class="flex flex-col gap-2" - > - {( - Object.entries(CURSOR_ANIMATION_STYLES) as [ - CursorAnimationStyle, - string - ][] - ).map(([value, label]) => ( - - - - - {label} - - - ))} - - + {window.FLAGS.zoom && ( + }> + { + console.log("Changing animation style to:", value); + setProject( + "cursor", + "animationStyle", + value as CursorAnimationStyle + ); + }} + class="flex flex-col gap-2" + > + {( + Object.entries(CURSOR_ANIMATION_STYLES) as [ + CursorAnimationStyle, + string + ][] + ).map(([value, label]) => ( + + + + + {label} + + + ))} + + + )} }> diff --git a/apps/desktop/src/routes/editor/Editor.tsx b/apps/desktop/src/routes/editor/Editor.tsx index 0e671505..7e209c6d 100644 --- a/apps/desktop/src/routes/editor/Editor.tsx +++ b/apps/desktop/src/routes/editor/Editor.tsx @@ -142,10 +142,10 @@ function Inner() { }); return ( - <> +
@@ -157,7 +157,7 @@ function Inner() {
- +
); }