Skip to content

Commit

Permalink
chore(format & lint): Ran formatting scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
retrouser955 committed Sep 23, 2024
1 parent 46a0ac7 commit c2024df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
9 changes: 3 additions & 6 deletions src/lib/components/EditorNavbar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import * as Dropdown from "$lib/components/ui/dropdown-menu";
import ChevronLeft from "lucide-svelte/icons/chevron-left";
export let isToolBoxHidden: boolean
export let isToolBoxHidden: boolean;
export let toolBoxWidth;
/* eslint-disable-next-line */
Expand All @@ -28,10 +28,7 @@
</script>

<div
class={cn(
"absolute top-4 w-full z-20 pr-5 flex justify-end",
isToolBoxHidden && "-left-28"
)}
class={cn("absolute top-4 w-full z-20 pr-5 flex justify-end", isToolBoxHidden && "-left-28")}
style={`padding-left: ${toolBoxWidth + 20}px`}
>
<div
Expand Down Expand Up @@ -90,7 +87,7 @@
<Dropdown.Item
class="cursor-pointer"
on:click={() => {
dispatch("toggle_toolbox")
dispatch("toggle_toolbox");
}}>Hide Toolbox</Dropdown.Item
>
</Dropdown.Content>
Expand Down
6 changes: 3 additions & 3 deletions src/routes/editor/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@
on:save={() => saveWorkspace(currentFile)}
on:load={() => loadWorkspace(currentFile)}
on:toggle_toolbox={() => {
if(workspace) {
if (workspace) {
const toolbox = workspace.getToolbox();
toolbox?.setVisible(isToolBoxHidden)
isToolBoxHidden = !isToolBoxHidden
toolbox?.setVisible(isToolBoxHidden);
isToolBoxHidden = !isToolBoxHidden;
}
}}
/>
Expand Down

0 comments on commit c2024df

Please sign in to comment.