mirror of
https://github.com/zadam/trilium.git
synced 2025-11-08 22:35:50 +01:00
fix(mobile): padding for the title
This commit is contained in:
@@ -143,6 +143,7 @@ export default class MobileLayout {
|
|||||||
.contentSized()
|
.contentSized()
|
||||||
.css("position: relative;")
|
.css("position: relative;")
|
||||||
.css("top: 5px;")
|
.css("top: 5px;")
|
||||||
|
.optCss(launcherPaneIsHorizontal, "padding-left", "0.5em")
|
||||||
)
|
)
|
||||||
.optChild(launcherPaneIsHorizontal, new MobileDetailMenuWidget(true).contentSized())
|
.optChild(launcherPaneIsHorizontal, new MobileDetailMenuWidget(true).contentSized())
|
||||||
.child(new CloseDetailButtonWidget().contentSized()))
|
.child(new CloseDetailButtonWidget().contentSized()))
|
||||||
|
|||||||
@@ -70,6 +70,14 @@ class BasicWidget extends Component {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
optCss(condition, name, value) {
|
||||||
|
if (condition) {
|
||||||
|
return this.css(name, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
contentSized() {
|
contentSized() {
|
||||||
this.css("contain", "none");
|
this.css("contain", "none");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user