mirror of
https://github.com/zadam/trilium.git
synced 2025-10-26 07:46:30 +01:00
Apply suggestions from code review
Use `mobile` class on body to determine the style of `CloseZenButton` instead of an extra class Co-authored-by: Elian Doran <contact@eliandoran.me>
This commit is contained in:
@@ -29,7 +29,7 @@ const TPL = /*html*/`\
|
||||
-webkit-app-region: no-drag;
|
||||
}
|
||||
|
||||
body.zen .mobile-close-zen-container {
|
||||
body.zen.mobile .close-zen-container {
|
||||
top: -2px;
|
||||
}
|
||||
|
||||
@@ -45,7 +45,6 @@ export default class CloseZenButton extends BasicWidget {
|
||||
|
||||
doRender(): void {
|
||||
this.$widget = $(TPL);
|
||||
this.$widget.toggleClass("mobile-close-zen-container", utils.isMobile())
|
||||
}
|
||||
|
||||
zenChangedEvent() {
|
||||
|
||||
Reference in New Issue
Block a user