Skip to content

armgit / dashy

Public Imported from GitHub
0

🚀 A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

:zap: Use v-cloak directive to hide unloaded content

Alicia Sykesbf635bd6c976
diff --git a/src/styles/global-styles.scss b/src/styles/global-styles.scss
index 1c3eaf29..0303bf0f 100644
--- a/src/styles/global-styles.scss
+++ b/src/styles/global-styles.scss
@@ -22,6 +22,10 @@ html {
}
}
+/* Hide text, and show 'Loading...' while Vue is intializing tags */
+[v-cloak] > * { display:none }
+[v-cloak]::before { content: "loading…" }
+
/* Overriding styles for the modal component */
.vm--modal, .dashy-modal {
box-shadow: 0 40px 70px -2px hsl(0deg 0% 0% / 60%), 1px 1px 6px var(--primary) !important;