mirror of
https://github.com/zadam/trilium.git
synced 2025-11-14 17:25:52 +01:00
feat(zen): set up draggable regions
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user