Skip to content

Commit b9d48b4

Browse files
committed
chore(ui): make loader container available globally
1 parent a5bc7d7 commit b9d48b4

2 files changed

Lines changed: 22 additions & 10 deletions

File tree

stackgres-k8s/src/admin-ui/public/assets/css/style.css

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@ td.actions a, a.paramDoc {
192192
}
193193

194194
.paramUl a.paramDoc {
195-
top: 1px;
196-
left: 6px;
195+
top: 2px;
196+
left: 1px;
197197
}
198198

199199
a.newTab {
@@ -810,6 +810,23 @@ form#login .warning {
810810
background-size: 30px;
811811
}
812812

813+
.loadingContainer {
814+
position: relative;
815+
}
816+
817+
.loadingContainer.loading:after {
818+
display: block;
819+
content: " ";
820+
position: absolute;
821+
z-index: 2;
822+
top: 0;
823+
left: 0;
824+
width: 100%;
825+
height: 100%;
826+
background: url(../img/loader.gif) center no-repeat rgba(0, 0, 0, .35);
827+
background-size: 30px;
828+
}
829+
813830
/* Dark mode - Log in */
814831

815832
.darkmode #nav .right > div#signup {
@@ -4679,6 +4696,7 @@ tr.details.pgConfig .title {
46794696

46804697
.paramDetails table {
46814698
margin-bottom: 30px;
4699+
width: 100%;
46824700
border: 0;
46834701
}
46844702

stackgres-k8s/src/admin-ui/src/App.vue

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<SideBar v-if="$route.params.hasOwnProperty('namespace')"></SideBar>
55
<div
66
id="main"
7+
class="loadingContainer"
78
:class="[
89
!$route.params.hasOwnProperty('namespace') && 'noSidebar',
910
isLoading && 'loading'
@@ -45,15 +46,8 @@
4546
width: 100%;
4647
}
4748
48-
#main.loading:after {
49-
display: block;
50-
content: " ";
51-
position: absolute;
49+
.loadingContainer.loading:after {
5250
top: 50px;
53-
left: 0;
54-
width: 100%;
5551
height: calc(100% - 50px);
56-
background: url('/assets/img/loader.gif') center no-repeat rgba(0, 0, 0, .35);
57-
background-size: 30px;
5852
}
5953
</style>

0 commit comments

Comments
 (0)