Skip to content

Commit a84bb6a

Browse files
committed
Fix CSS
1 parent 2c34623 commit a84bb6a

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

frontend/src/components/window/TitleBar.svelte

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,8 @@
5353
: undefined}
5454
tooltipShortcut={$tooltip.f11Shortcut}
5555
on:click={() => {
56-
if (isDesktop()) {
57-
editor.handle.appWindowFullscreen();
58-
} else {
59-
($fullscreen.windowFullscreen ? fullscreen.exitFullscreen : fullscreen.enterFullscreen)();
60-
}
56+
if (isDesktop()) editor.handle.appWindowFullscreen();
57+
else ($fullscreen.windowFullscreen ? fullscreen.exitFullscreen : fullscreen.enterFullscreen)();
6158
}}
6259
>
6360
<IconLabel icon={isFullscreen ? "FullscreenExit" : "FullscreenEnter"} />
@@ -69,7 +66,7 @@
6966
<LayoutRow tooltipLabel={$appWindow.maximized ? ($appWindow.platform === "Windows" ? "Restore Down" : "Unmaximize") : "Maximize"} on:click={() => editor.handle.appWindowMaximize()}>
7067
<IconLabel icon={$appWindow.maximized ? "WindowButtonWinRestoreDown" : "WindowButtonWinMaximize"} />
7168
</LayoutRow>
72-
<LayoutRow tooltipLabel="Close" class="close" on:click={() => editor.handle.appWindowClose()}>
69+
<LayoutRow tooltipLabel="Close" on:click={() => editor.handle.appWindowClose()}>
7370
<IconLabel icon="WindowButtonWinClose" />
7471
</LayoutRow>
7572
{/if}
@@ -123,19 +120,19 @@
123120
padding: 0 8px;
124121
}
125122
126-
&.windows > .layout-row {
123+
&.windows:not(.fullscreen) > .layout-row {
127124
padding: 0 17px;
128125
129126
&:hover {
130127
background: #2d2d2d;
131128
}
132129
133-
&.close:hover {
130+
&:last-of-type:hover {
134131
background: #c42b1c;
135132
}
136133
}
137134
138-
&.linux > .layout-row {
135+
&.linux:not(.fullscreen) > .layout-row {
139136
padding: 0 12px;
140137
141138
&:hover {

0 commit comments

Comments
 (0)