fix(zen): not working properly when native titlebar is on

This commit is contained in:
Elian Doran 2025-02-14 19:07:13 +02:00
parent ab7457cf90
commit 137aa93451
No known key found for this signature in database

View File

@ -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>