feat(zen): set up draggable regions

This commit is contained in:
Elian Doran 2025-02-14 18:47:15 +02:00
parent 2c80607bfd
commit e829abbad3
No known key found for this signature in database
2 changed files with 18 additions and 2 deletions

View File

@ -2,13 +2,16 @@ import BasicWidget from "./basic_widget.js";
const TPL = `\
<div class="close-zen-container">
<a class="button-widget bx icon-action bxs-yin-yang"
<button class="button-widget bx icon-action bxs-yin-yang"
data-trigger-command="toggleZenMode" />
<style>
:root {
--zen-button-size: 32px;
}
.close-zen-container {
display: none;
--size: 32px;
width: var(--size);
height: var(--size);
}
@ -19,6 +22,7 @@ const TPL = `\
top: 0;
right: 0;
z-index: 9999;
-webkit-app-region: no-drag;
}
body.zen.electron:not(.native-titlebar) .close-zen-container {

View File

@ -1671,4 +1671,16 @@ body.zen #launcher-pane {
height: 64px !important;
background: transparent !important;
border: 0 !important;
}
body.zen .title-row {
display: block !important;
height: unset !important;
-webkit-app-region: drag;
}
body.zen .note-title-widget,
body.zen .note-title-widget input {
font-size: 1rem !important;
background: transparent !important;
}