Skip to content

Commit

Permalink
style(Map): remove !important style
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinFabre-ods committed Jul 5, 2024
1 parent 9ae11aa commit 5784c64
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/visualizations/src/components/Map/WebGl/WebGl.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@
height: auto;
max-height: 100%;
box-sizing: border-box;
max-width: none !important;
}
.ods-visualization__map-container :global(.maplibregl-popup--as-sidebar),
.ods-visualization__map-container :global(.maplibregl-popup--as-modal) {
Expand All @@ -103,15 +102,15 @@
}
.ods-visualization__map-container :global(.maplibregl-popup--as-modal) {
width: 100% !important;
width: 100%;
}
.ods-visualization__map-container :global(.maplibregl-popup--as-sidebar) {
/* 300px for content and 26px for padding */
width: calc(300px + 26px) !important;
width: calc(300px + 26px);
}
.ods-visualization__map-container :global(.maplibregl-popup--as-tooltip) {
width: 300px !important;
width: 300px;
max-height: 50%;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,5 @@ export const POPUP_DISPLAY_CLASSNAME_MODIFIER: Record<PopupDisplayTypes, string>
export const POPUP_OPTIONS: PopupOptions = {
closeButton: false,
closeOnClick: false,
maxWidth: 'none'
};

0 comments on commit 5784c64

Please sign in to comment.