From 0330221bcfeaeb1e6b58b3d70f86e177be13defc Mon Sep 17 00:00:00 2001 From: Edoardo Sabadelli Date: Thu, 11 Jul 2024 11:11:48 +0200 Subject: [PATCH] chore: run prettier --- src/components/app/styles/App.module.css | 6 +++--- src/components/core/LabelDisplayOptions.js | 2 +- src/components/core/styles/Checkbox.module.css | 2 +- src/components/core/styles/IconButton.module.css | 2 +- src/components/datatable/styles/BottomPanel.module.css | 2 +- src/components/download/styles/DownloadMapInfo.module.css | 2 +- src/components/download/styles/DownloadMenubar.module.css | 3 +-- src/components/download/styles/LegendLayers.module.css | 1 - src/components/download/styles/OverviewMap.module.css | 2 +- src/components/layers/overlays/styles/LayerList.module.css | 3 ++- src/components/map/styles/MapPosition.module.css | 2 +- 11 files changed, 13 insertions(+), 14 deletions(-) diff --git a/src/components/app/styles/App.module.css b/src/components/app/styles/App.module.css index 53f48d6023..8f9e0abf2f 100644 --- a/src/components/app/styles/App.module.css +++ b/src/components/app/styles/App.module.css @@ -14,9 +14,9 @@ } /* Avoid vertical layer dialog scroll on small screens */ -:global(#dhis2-portal-root) aside[role=dialog], -:global(#dhis2-portal-root) aside[role=dialog] > div > div { - max-height: calc(100vh - 64px) +:global(#dhis2-portal-root) aside[role='dialog'], +:global(#dhis2-portal-root) aside[role='dialog'] > div > div { + max-height: calc(100vh - 64px); } /* Scrollbar width */ diff --git a/src/components/core/LabelDisplayOptions.js b/src/components/core/LabelDisplayOptions.js index 61675c42f0..70d2391647 100644 --- a/src/components/core/LabelDisplayOptions.js +++ b/src/components/core/LabelDisplayOptions.js @@ -6,7 +6,7 @@ import { LABEL_TEMPLATE_NAME_AND_VALUE, LABEL_TEMPLATE_VALUE_ONLY, } from '../../constants/layers.js' -import { SelectField } from '.' +import SelectField from './SelectField.js' const getLabelDisplayOptions = () => [ { diff --git a/src/components/core/styles/Checkbox.module.css b/src/components/core/styles/Checkbox.module.css index 507787a3c8..a71213b4d8 100644 --- a/src/components/core/styles/Checkbox.module.css +++ b/src/components/core/styles/Checkbox.module.css @@ -7,6 +7,6 @@ /* This styles the tooltip span containing the svg */ .checkbox span { margin-left: var(--spacers-dp4); - display:flex; + display: flex; flex-direction: column; } diff --git a/src/components/core/styles/IconButton.module.css b/src/components/core/styles/IconButton.module.css index 432001f1bc..e73081689e 100644 --- a/src/components/core/styles/IconButton.module.css +++ b/src/components/core/styles/IconButton.module.css @@ -11,7 +11,7 @@ .iconButton.disabled svg { fill: var(--colors-grey400); cursor: not-allowed; - color: var(--colors-grey400) + color: var(--colors-grey400); } .iconButton:not(.disabled):hover { diff --git a/src/components/datatable/styles/BottomPanel.module.css b/src/components/datatable/styles/BottomPanel.module.css index 85fc33e4fd..19e3c0f831 100644 --- a/src/components/datatable/styles/BottomPanel.module.css +++ b/src/components/datatable/styles/BottomPanel.module.css @@ -32,7 +32,7 @@ } .closeIcon svg { - position:absolute; + position: absolute; top: 50%; left: 50%; margin: -8px 0 0 -8px; diff --git a/src/components/download/styles/DownloadMapInfo.module.css b/src/components/download/styles/DownloadMapInfo.module.css index f45f313dfa..7dd7092377 100644 --- a/src/components/download/styles/DownloadMapInfo.module.css +++ b/src/components/download/styles/DownloadMapInfo.module.css @@ -26,7 +26,7 @@ } .downloadMapInfo table { - table-layout:fixed; + table-layout: fixed; } .downloadMapInfo table td { diff --git a/src/components/download/styles/DownloadMenubar.module.css b/src/components/download/styles/DownloadMenubar.module.css index fccd907d25..7539594da2 100644 --- a/src/components/download/styles/DownloadMenubar.module.css +++ b/src/components/download/styles/DownloadMenubar.module.css @@ -7,7 +7,7 @@ z-index: 1200; background-color: var(--colors-grey600); left: 0; - top: 0 + top: 0; } .downloadModeMenu button { @@ -19,4 +19,3 @@ :global(.dhis2-map-downloading .maplibregl-popup-close-button) { display: none; } - diff --git a/src/components/download/styles/LegendLayers.module.css b/src/components/download/styles/LegendLayers.module.css index c1aeb63a5a..91e78511f0 100644 --- a/src/components/download/styles/LegendLayers.module.css +++ b/src/components/download/styles/LegendLayers.module.css @@ -1,4 +1,3 @@ .legendLayers { margin-left: 22px; } - diff --git a/src/components/download/styles/OverviewMap.module.css b/src/components/download/styles/OverviewMap.module.css index 54625aab5b..9d6006a6ff 100644 --- a/src/components/download/styles/OverviewMap.module.css +++ b/src/components/download/styles/OverviewMap.module.css @@ -1,5 +1,5 @@ .overviewMap { - margin-top: var(--spacers-dp8); + margin-top: var(--spacers-dp8); border: 1px solid #ccc; width: 100%; height: 260px; diff --git a/src/components/layers/overlays/styles/LayerList.module.css b/src/components/layers/overlays/styles/LayerList.module.css index d7eee01da0..7ebeec2dd6 100644 --- a/src/components/layers/overlays/styles/LayerList.module.css +++ b/src/components/layers/overlays/styles/LayerList.module.css @@ -5,7 +5,8 @@ .list { max-width: 684px; max-height: calc(100vh - 150px); - padding: var(--spacers-dp8) var(--spacers-dp4) var(--spacers-dp8) var(--spacers-dp12); + padding: var(--spacers-dp8) var(--spacers-dp4) var(--spacers-dp8) + var(--spacers-dp12); overflow-y: auto; } diff --git a/src/components/map/styles/MapPosition.module.css b/src/components/map/styles/MapPosition.module.css index 98f2f90d87..f374d94259 100644 --- a/src/components/map/styles/MapPosition.module.css +++ b/src/components/map/styles/MapPosition.module.css @@ -7,7 +7,7 @@ width: 100%; position: relative; overflow: hidden; - flex: auto + flex: auto; } .mapContainer.download {