Fix linting errors, improve lint scripts

This commit is contained in:
2026-02-24 16:03:12 +04:00
parent 9ac4273fae
commit 845be96b71
13 changed files with 56 additions and 42 deletions

View File

@@ -508,18 +508,18 @@ export default class MapComponent extends Component {
// Top padding: 15% of the VISIBLE height (size[1] * 0.5)
const visibleHeight = size[1] * 0.5;
const topPadding = visibleHeight * 0.15;
const bottomPadding = (size[1] * 0.5) + (visibleHeight * 0.15); // Sheet + padding
const bottomPadding = size[1] * 0.5 + visibleHeight * 0.15; // Sheet + padding
padding[0] = topPadding;
padding[2] = bottomPadding;
}
// Desktop: Sidebar covers left side (approx 400px)
else if (this.args.isSidebarOpen) {
const sidebarWidth = 400;
const sidebarWidth = 400;
const visibleWidth = size[0] - sidebarWidth;
// Left padding: Sidebar + 15% of visible width
padding[3] = sidebarWidth + (visibleWidth * 0.15);
padding[3] = sidebarWidth + visibleWidth * 0.15;
// Right padding: 15% of visible width
padding[1] = visibleWidth * 0.15;
}