refactor(preset): rework preset
test / test (push) Failing after 5m38s

This commit is contained in:
2026-10-29 18:33:25 +03:00
parent d9e8976e85
commit c58fc308c4
21 changed files with 237 additions and 222 deletions
+2 -2
View File
@@ -121,10 +121,10 @@ export class Config {
}
afterUpdate() {
if (this.meta.mobileWidth === null) {
if (this.meta.mobileWidth === undefined) {
this.meta.mobileWidth = this.meta.width;
}
if (this.meta.mobileHeight === null && this.meta.mobileWidth) {
if (this.meta.mobileHeight === undefined && this.meta.mobileWidth) {
this.meta.mobileHeight = Math.round(this.meta.mobileWidth / 2.222222222);
}
}