mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-11 19:22:31 +08:00
fix(mobile): padding for the title
This commit is contained in:
parent
ba5371d76b
commit
e0d9cda522
@ -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");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user