mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-31 20:22:27 +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 = `\
|
const TPL = `\
|
||||||
<div class="close-zen-container">
|
<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" />
|
data-trigger-command="toggleZenMode" />
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
:root {
|
||||||
|
--zen-button-size: 32px;
|
||||||
|
}
|
||||||
|
|
||||||
.close-zen-container {
|
.close-zen-container {
|
||||||
display: none;
|
display: none;
|
||||||
--size: 32px;
|
|
||||||
width: var(--size);
|
width: var(--size);
|
||||||
height: var(--size);
|
height: var(--size);
|
||||||
}
|
}
|
||||||
@ -19,6 +22,7 @@ const TPL = `\
|
|||||||
top: 0;
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
z-index: 9999;
|
z-index: 9999;
|
||||||
|
-webkit-app-region: no-drag;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.zen.electron:not(.native-titlebar) .close-zen-container {
|
body.zen.electron:not(.native-titlebar) .close-zen-container {
|
||||||
|
@ -1671,4 +1671,16 @@ body.zen #launcher-pane {
|
|||||||
height: 64px !important;
|
height: 64px !important;
|
||||||
background: transparent !important;
|
background: transparent !important;
|
||||||
border: 0 !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