Remove linux only close button

This commit is contained in:
onkofonko 2024-09-01 01:20:14 +02:00
parent ba3f6f87f5
commit e09dcd1d9d

View file

@ -43,13 +43,6 @@
<button class='button' id='close-button' on:click={closeapp}><svg class='svg-controls' height='12' role='img' viewBox='0 0 12 12'width='12'><polygon fill='currentColor' fill-rule='evenodd' points='11 1.576 6.583 6 11 10.424 10.424 11 6 6.583 1.576 11 1 10.424 5.417 6 1 1.576 1.576 1 6 5.417 10.424 1' /></svg></button>
</div>
<div class='h-full bg-dark flex-grow-1'>
{#if window.version?.platform === 'linux'}
<div class='d-flex align-items-center close h-full' use:click={() => IPC.emit('close')}>
<svg viewBox='0 0 24 24'>
<path d='M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z' />
</svg>
</div>
{/if}
</div>
</div>
{#if $debug}
@ -83,20 +76,11 @@
top: 0;
-webkit-app-region: no-drag;
}
.close {
width: 40px;
}
.close:hover {
background-color: #e81123 !important;
}
svg {
width: 18px;
height: 18px;
width: 100%;
}
path {
fill: currentColor;
}
.navbar {
left: unset !important;
}