Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit 40e2428

Browse files
fix: no skeleton for gifs
1 parent f5af37d commit 40e2428

File tree

3 files changed

+46
-37
lines changed

3 files changed

+46
-37
lines changed

studio/src/app/components/core/app-menu-user/app-menu-user.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,10 @@ export class AppMenuUser {
297297
})
298298
);
299299
} else {
300-
return undefined;
300+
return <ion-item>
301+
<ion-icon name="book" slot="start"></ion-icon>
302+
<ion-skeleton-text animated></ion-skeleton-text>
303+
</ion-item>;
301304
}
302305
}
303306

studio/src/app/pages/editor/app-editor/app-editor.scss

Lines changed: 2 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ app-editor {
22
@import "../../../../global/theme/editor/editor-deck";
33
@import "../../../../global/theme/editor/editor-deck-fonts";
44

5+
@import "../../../../global/theme/editor/editor-loading";
6+
57
main {
68
position: relative;
79

@@ -12,42 +14,6 @@ app-editor {
1214
margin: auto;
1315

1416
overflow: hidden;
15-
16-
ion-spinner {
17-
position: absolute;
18-
top: 50%;
19-
left: 50%;
20-
transform: translate(-50%, -50%);
21-
}
22-
23-
// Skeleton for new slides
24-
[slot]:not([contentEditable]) {
25-
position: relative;
26-
27-
background: var(--ion-color-light);
28-
border-color: var(--ion-color-light);
29-
30-
color: transparent;
31-
32-
-webkit-user-select: none;
33-
-moz-user-select: none;
34-
-ms-user-select: none;
35-
-o-user-select: none;
36-
user-select: none;
37-
38-
pointer-events: none;
39-
40-
&::after {
41-
content: '';
42-
position: absolute;
43-
top: 0;
44-
left: 0;
45-
width: 100%;
46-
height: 100%;
47-
background: linear-gradient(90deg, var(--ion-color-light), lighten(#f4f5f8, 7%), var(--ion-color-light));
48-
animation: progress 2s ease-in-out infinite;
49-
}
50-
}
5117
}
5218

5319
ion-footer {
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
main {
2+
ion-spinner {
3+
position: absolute;
4+
top: 50%;
5+
left: 50%;
6+
transform: translate(-50%, -50%);
7+
}
8+
9+
:not(deckgo-slide-gif) {
10+
// Skeleton for new slides
11+
> [slot]:not([contentEditable]) {
12+
position: relative;
13+
14+
background: var(--ion-color-light);
15+
border-color: var(--ion-color-light);
16+
17+
color: transparent;
18+
19+
-webkit-user-select: none;
20+
-moz-user-select: none;
21+
-ms-user-select: none;
22+
-o-user-select: none;
23+
user-select: none;
24+
25+
pointer-events: none;
26+
27+
&::after {
28+
content: '';
29+
position: absolute;
30+
top: 0;
31+
left: 0;
32+
width: 100%;
33+
height: 100%;
34+
background: linear-gradient(90deg, var(--ion-color-light), lighten(#f4f5f8, 7%), var(--ion-color-light));
35+
animation: progress 2s ease-in-out infinite;
36+
}
37+
}
38+
}
39+
40+
}

0 commit comments

Comments
 (0)