mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-10 10:22:29 +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 {
|
||||
display: none;
|
||||
width: var(--size);
|
||||
height: var(--size);
|
||||
width: var(--zen-button-size);
|
||||
height: var(--zen-button-size);
|
||||
}
|
||||
|
||||
body.zen .close-zen-container {
|
||||
@ -26,8 +26,7 @@ const TPL = `\
|
||||
}
|
||||
|
||||
body.zen.electron:not(.native-titlebar) .close-zen-container {
|
||||
--size: 32px;
|
||||
left: calc(env(titlebar-area-width) - var(--size) - 2px);
|
||||
left: calc(env(titlebar-area-width) - var(--zen-button-size) - 2px);
|
||||
right: unset;
|
||||
}
|
||||
</style>
|
||||
|
Loading…
x
Reference in New Issue
Block a user