From 7fb9fa0c77e55201efb7f23de0b6f04290a5626f Mon Sep 17 00:00:00 2001 From: Daniel Santillan Date: Thu, 19 Dec 2024 16:46:29 +0100 Subject: [PATCH] fix: spinner style --- app/src/components/map/MapOverlay.vue | 37 +++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/app/src/components/map/MapOverlay.vue b/app/src/components/map/MapOverlay.vue index 210a5b8b80..9b6e233e62 100644 --- a/app/src/components/map/MapOverlay.vue +++ b/app/src/components/map/MapOverlay.vue @@ -83,6 +83,43 @@ export default { border-bottom: 0; margin-left: -10px; margin-bottom: -10px; + } + .loading-indicator { + top: unset; + bottom: 0.5em !important; + left: 0.5em !important; + height: 22px; + pointer-events: none !important; + } + + .loading-indicator.hidden { + display: none; + } + + @keyframes spinner { + to { + transform: rotate(360deg); + } + } + + .spinner:after { + content: ""; + box-sizing: border-box; + position: absolute; + top: 50%; + left: 50%; + width: 18px; + height: 18px; + margin-top: -9px; + margin-left: -9px; + border-radius: 50%; + border: 5px solid rgba(180, 180, 180, 0.6); + border-top-color: rgba(0, 0, 0, 0.6); + animation: spinner 0.6s linear infinite; + } + .theme--dark .spinner:after { + border: 5px solid rgba(180, 180, 180, 0.6); + border-top-color: rgba(255, 255, 255, 0.6); }`; if ('mapContainer' in this.$parent.$refs && this.$parent.$refs.mapContainer.shadowRoot) { this.$parent.$refs.mapContainer.shadowRoot.appendChild(style);