mirror of
https://github.com/docmost/docmost.git
synced 2026-05-07 06:23:06 +08:00
fix pulse
This commit is contained in:
@@ -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={{
|
||||
|
||||
Reference in New Issue
Block a user