Skip to content

Commit

Permalink
fix(sbb-map-container): improve support for tablet devices (#3214)
Browse files Browse the repository at this point in the history
Closes #3091
  • Loading branch information
jeripeierSBB authored Nov 20, 2024
1 parent 4b129c4 commit b1e75ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/elements/map-container/map-container.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
grid-template-columns: max(var(--sbb-map-container-sidebar-width)) calc(
100% - var(--sbb-map-container-sidebar-width)
);
height: calc(100vh - var(--sbb-map-container-margin-start, var(--sbb-header-height)));
position: fixed;
inset: var(--sbb-map-container-margin-start, var(--sbb-header-height)) 0 0 0;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/elements/map-container/map-container.visual.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ describe(`sbb-map-container`, () => {
it(
visualDiffDefault.name,
visualDiffDefault.with(async (setup) => {
await setup.withFixture(template(), { padding: '0' });
await setup.withFixture(template(), { padding: '0', minHeight: '500px' });
}),
);
});
Expand Down

0 comments on commit b1e75ee

Please sign in to comment.