Skip to content

Commit

Permalink
fix: modal overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
joaotomaspinheiro committed Jun 11, 2024
1 parent fc4e98d commit 2311ed0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
9 changes: 8 additions & 1 deletion web/src/lib/components/SelectLocation.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,14 @@
onBackdropClick={removeSelectedLocation}
title={$t("selectLocation")}
>
<Map bind:map mapId="select-location-map" --height="32rem" --width="60rem" />
<Map
bind:map
mapId="select-location-map"
--height="50vh"
--width="60vw"
--max-height="32rem"
--max-width="60rem"
/>
<svelte:fragment slot="actions">
<Button variant="tertiary" onClick={handleCancel}>{$t("cancel")}</Button>
<Button
Expand Down
2 changes: 2 additions & 0 deletions web/src/lib/components/map/Map.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@
.map {
width: var(--width, 100%);
height: var(--height, 100%);
max-width: var(--max-width, 100%);
max-height: var(--max-height, 100%);
position: relative;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,10 @@
<MapComponent
bind:map
mapId="select-containers-map"
--height="32rem"
--width="60rem"
--height="50vh"
--width="60vw"
--max-height="32rem"
--max-width="60rem"
/>
<svelte:fragment slot="actions">
<Button variant="tertiary" onClick={handleCancel}>{$t("cancel")}</Button>
Expand Down

0 comments on commit 2311ed0

Please sign in to comment.