mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-10 02:02:29 +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()
|
||||
.css("position: relative;")
|
||||
.css("top: 5px;")
|
||||
.optCss(launcherPaneIsHorizontal, "padding-left", "0.5em")
|
||||
)
|
||||
.optChild(launcherPaneIsHorizontal, new MobileDetailMenuWidget(true).contentSized())
|
||||
.child(new CloseDetailButtonWidget().contentSized()))
|
||||
|
@ -70,6 +70,14 @@ class BasicWidget extends Component {
|
||||
return this;
|
||||
}
|
||||
|
||||
optCss(condition, name, value) {
|
||||
if (condition) {
|
||||
return this.css(name, value);
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
contentSized() {
|
||||
this.css("contain", "none");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user