fix(mobile): padding for the title

This commit is contained in:
Elian Doran 2024-11-23 09:59:48 +02:00
parent ba5371d76b
commit e0d9cda522
No known key found for this signature in database
2 changed files with 9 additions and 0 deletions

View File

@ -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()))

View File

@ -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");