mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 15:19:01 +02: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:
parent
d975790e79
commit
4cd4c2f607
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user