mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 11:02:28 +08:00
feat(zen): set up draggable regions
This commit is contained in:
parent
2c80607bfd
commit
e829abbad3
@ -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 {
|
||||
|
@ -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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user