Skip to content

Commit 0556716

Browse files
committed
fix(loader): adds full height loader in option & web
1 parent 0bf8c91 commit 0556716

File tree

2 files changed

+58
-2
lines changed

2 files changed

+58
-2
lines changed

src/index.html

+29-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,14 @@
1616
<meta name="theme-color" content="#80000a" />
1717
</head>
1818
<body>
19-
<wc-trakt-extension> Loading web component ... </wc-trakt-extension>
19+
<wc-trakt-extension>
20+
<div id="app-skeleton-container">
21+
<div id="app-skeleton-navbar"></div>
22+
<div id="app-skeleton-content">
23+
<span id="app-skeleton-loader">Loading popup application ...</span>
24+
</div>
25+
</div>
26+
</wc-trakt-extension>
2027
<script type="module" src="./views/options/main.ts"></script>
2128
</body>
2229
</html>
@@ -52,4 +59,25 @@
5259
flex: 1 1 auto;
5360
flex-direction: column;
5461
}
62+
63+
#app-skeleton-container {
64+
height: 100%;
65+
}
66+
67+
#app-skeleton-navbar {
68+
width: 100%;
69+
height: 44px;
70+
background: rgba(0 0 0 / 30%);
71+
72+
&:hover {
73+
background: rgba(0 0 0 / 60%);
74+
}
75+
}
76+
77+
#app-skeleton-content {
78+
display: flex;
79+
align-items: center;
80+
justify-content: center;
81+
height: calc(var(--full-height, 100dvh) - 44px)
82+
}
5583
</style>

src/views/options/index.html

+29-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,14 @@
66
<title>Side Trakt Options</title>
77
</head>
88
<body>
9-
<wc-trakt-extension> Loading options component ... </wc-trakt-extension>
9+
<wc-trakt-extension>
10+
<div id="app-skeleton-container">
11+
<div id="app-skeleton-navbar"></div>
12+
<div id="app-skeleton-content">
13+
<span id="app-skeleton-loader">Loading popup application ...</span>
14+
</div>
15+
</div>
16+
</wc-trakt-extension>
1017
<script type="module" src="./main.ts"></script>
1118
</body>
1219
</html>
@@ -34,4 +41,25 @@
3441
flex: 1 1 auto;
3542
flex-direction: column;
3643
}
44+
45+
#app-skeleton-container {
46+
height: 100%;
47+
}
48+
49+
#app-skeleton-navbar {
50+
width: 100%;
51+
height: 44px;
52+
background: rgba(0 0 0 / 30%);
53+
54+
&:hover {
55+
background: rgba(0 0 0 / 60%);
56+
}
57+
}
58+
59+
#app-skeleton-content {
60+
display: flex;
61+
align-items: center;
62+
justify-content: center;
63+
height: calc(var(--full-height, 100dvh) - 44px)
64+
}
3765
</style>

0 commit comments

Comments
 (0)