@setoelkahfi / svara / commits / ded24d5

fix: removed unneccesary variable

mellbacon committed Jul 20, 2023 at 18:23 UTC ded24d5ee48da738bb5d28848845daac3ad208ea
1 file changed +41 -45
src/lib/Header.svelte
+41 -45
@@ -56,55 +56,51 @@
56 {name: "About", disabled: true, shortcut: "", action: () => {console.warn("Feature not implemented yet.")}},
57 ]},
58 ];
59 -
60 - const x = appWindow.isFullscreen()
59 </script>
60
63 -{#if x}
64 - <div id="header">
65 - <div id="logo"></div>
66 - <div id="menubar">
67 - {#each items as item}
68 - <Dropdown menu={item}></Dropdown>
69 - {/each}
70 - </div>
71 - <div class="divider"></div>
72 - <div id="workspace" title="" data-tauri-drag-region>
73 - {$workspaceName}
74 - </div>
75 - <div id="handle" data-tauri-drag-region></div>
76 - <div class="tools">
77 -
78 - <div class="settings-button">
79 - <Dropdown right menu={{icon: Settings, children: [
80 - {name: "Settings", shortcut: "", action: () => {addTab("Settings", "Settings", new settings({target: document.getElementById("tabview")}))}},
81 - {name: "Keymap", disabled: true, shortcut: "", action: () => {console.warn("Feature not implemented yet.")}}
82 - ]
83 - }} />
84 - </div>
85 - </div>
86 - <div id="window-controls">
87 - <!-- svelte-ignore a11y-click-events-have-key-events -->
88 - <div
89 - class="window-button"
90 - id="minimize"
91 - on:click={commands.minimizeWindow.command}
92 - />
93 - <!-- svelte-ignore a11y-click-events-have-key-events -->
94 - <div
95 - class="window-button"
96 - id="maximize"
97 - on:click={commands.maximizeWindow.command}
98 - />
99 - <!-- svelte-ignore a11y-click-events-have-key-events -->
100 - <div
101 - class="window-button"
102 - id="close"
103 - on:click={commands.closeWindow.command}
104 - />
61 +<div id="header">
62 + <div id="logo"></div>
63 + <div id="menubar">
64 + {#each items as item}
65 + <Dropdown menu={item}></Dropdown>
66 + {/each}
67 + </div>
68 + <div class="divider"></div>
69 + <div id="workspace" title="" data-tauri-drag-region>
70 + {$workspaceName}
71 + </div>
72 + <div id="handle" data-tauri-drag-region></div>
73 + <div class="tools">
74 +
75 + <div class="settings-button">
76 + <Dropdown right menu={{icon: Settings, children: [
77 + {name: "Settings", shortcut: "", action: () => {addTab("Settings", "Settings", new settings({target: document.getElementById("tabview")}))}},
78 + {name: "Keymap", disabled: true, shortcut: "", action: () => {console.warn("Feature not implemented yet.")}}
79 + ]
80 + }} />
81 </div>
82 </div>
107 -{/if}
83 + <div id="window-controls">
84 + <!-- svelte-ignore a11y-click-events-have-key-events -->
85 + <div
86 + class="window-button"
87 + id="minimize"
88 + on:click={commands.minimizeWindow.command}
89 + />
90 + <!-- svelte-ignore a11y-click-events-have-key-events -->
91 + <div
92 + class="window-button"
93 + id="maximize"
94 + on:click={commands.maximizeWindow.command}
95 + />
96 + <!-- svelte-ignore a11y-click-events-have-key-events -->
97 + <div
98 + class="window-button"
99 + id="close"
100 + on:click={commands.closeWindow.command}
101 + />
102 + </div>
103 +</div>
104
105 <style lang="scss">
106 #header {