mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-11 11:02:27 +08:00
fix(zen): not working properly when native titlebar is on
This commit is contained in:
parent
ab7457cf90
commit
137aa93451
@ -12,8 +12,8 @@ const TPL = `\
|
|||||||
|
|
||||||
.close-zen-container {
|
.close-zen-container {
|
||||||
display: none;
|
display: none;
|
||||||
width: var(--size);
|
width: var(--zen-button-size);
|
||||||
height: var(--size);
|
height: var(--zen-button-size);
|
||||||
}
|
}
|
||||||
|
|
||||||
body.zen .close-zen-container {
|
body.zen .close-zen-container {
|
||||||
@ -26,8 +26,7 @@ const TPL = `\
|
|||||||
}
|
}
|
||||||
|
|
||||||
body.zen.electron:not(.native-titlebar) .close-zen-container {
|
body.zen.electron:not(.native-titlebar) .close-zen-container {
|
||||||
--size: 32px;
|
left: calc(env(titlebar-area-width) - var(--zen-button-size) - 2px);
|
||||||
left: calc(env(titlebar-area-width) - var(--size) - 2px);
|
|
||||||
right: unset;
|
right: unset;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user