style(zen): improve position slightly

This commit is contained in:
Elian Doran 2025-02-14 18:56:36 +02:00
parent 1ad8c6b1cb
commit 9221932abb
No known key found for this signature in database

View File

@ -19,15 +19,15 @@ const TPL = `\
body.zen .close-zen-container { body.zen .close-zen-container {
display: block; display: block;
position: fixed; position: fixed;
top: 0; top: 2px;
right: 0; right: 2px;
z-index: 9999; z-index: 9999;
-webkit-app-region: no-drag; -webkit-app-region: no-drag;
} }
body.zen.electron:not(.native-titlebar) .close-zen-container { body.zen.electron:not(.native-titlebar) .close-zen-container {
--size: 32px; --size: 32px;
left: calc(env(titlebar-area-width) - var(--size)); left: calc(env(titlebar-area-width) - var(--size) - 2px);
right: unset; right: unset;
} }
</style> </style>