fix pulse

This commit is contained in:
Philipinho
2026-03-28 11:14:40 +00:00
parent 4b99d89e55
commit c599b6a9c1
6 changed files with 14 additions and 1 deletions
@@ -5,6 +5,9 @@
max-width: 100%;
border-radius: 8px;
overflow: hidden;
}
.skeleton {
animation: pulse 1.2s ease-in-out infinite;
@mixin light {
@@ -26,6 +29,7 @@
}
}
}
.audio {
display: block;
width: 100%;
@@ -23,7 +23,7 @@ export default function AudioView(props: NodeViewProps) {
return (
<NodeViewWrapper data-drag-handle>
<div className={classes.audioWrapper}>
<div className={`${classes.audioWrapper} ${!src ? classes.skeleton : ''}`}>
{src && (
<audio
className={classes.audio}
@@ -5,6 +5,9 @@
max-width: 100%;
border-radius: 8px;
overflow: hidden;
}
.skeleton {
animation: pulse 1.2s ease-in-out infinite;
@mixin light {
@@ -33,6 +33,7 @@ export default function ImageView(props: NodeViewProps) {
className={clsx(
selected && "ProseMirror-selectednode",
classes.imageWrapper,
!src && classes.skeleton,
alignClass,
)}
style={{
@@ -5,6 +5,9 @@
max-width: 100%;
border-radius: 8px;
overflow: hidden;
}
.skeleton {
animation: pulse 1.2s ease-in-out infinite;
@mixin light {
@@ -26,6 +29,7 @@
}
}
}
.video {
display: block;
width: 100%;
@@ -33,6 +33,7 @@ export default function VideoView(props: NodeViewProps) {
className={clsx(
selected && "ProseMirror-selectednode",
classes.videoWrapper,
!src && classes.skeleton,
alignClass,
)}
style={{