style(stalker): use different ghosts for category and category content view

This commit is contained in:
4gray committed 2024-04-04 22:47:43 +02:00
1 parent 1d4374a453
commit 53bb6e4ec7
2 files changed
+23 -7

No files matched your search

@@ -16,9 +16,9 @@
@if (isLoading) {
<div class="loading-wrapper">
<div class="loading-container">
@for (a of [].constructor(14); track $index) {
<div class="skeleton-item">
@if (currentLayout === 'category_content') {
<div class="loading-container category-content-view">
@for (a of [].constructor(14); track $index) {
<ngx-skeleton-loader
count="1"
[theme]="{ width: '170px', height: '270px' }"
@@ -27,9 +27,18 @@
count="1"
[theme]="{ width: '60%', height: '30px' }"
/>
</div>
}
</div>
}
</div>
} @else if (currentLayout === 'category') {
<div class="loading-container category-view">
@for (a of [].constructor(14); track $index) {
<ngx-skeleton-loader
count="1"
[theme]="{ width: '170px', height: '51px' }"
/>
}
</div>
}
</div>
} @else {
@switch (currentLayout) {
@@ -5,7 +5,14 @@
.loading-container {
display: flex;
gap: 30px;
flex-wrap: wrap;
justify-content: center;
}
.category-content-view {
gap: 30px;
}
.category-view {
gap: 10px;
}