mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +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;
|
-webkit-app-region: no-drag;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.zen .mobile-close-zen-container {
|
body.zen.mobile .close-zen-container {
|
||||||
top: -2px;
|
top: -2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -45,7 +45,6 @@ export default class CloseZenButton extends BasicWidget {
|
|||||||
|
|
||||||
doRender(): void {
|
doRender(): void {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.$widget.toggleClass("mobile-close-zen-container", utils.isMobile())
|
|
||||||
}
|
}
|
||||||
|
|
||||||
zenChangedEvent() {
|
zenChangedEvent() {
|
||||||
|
|||||||
Reference in New Issue
Block a user