Skip to content

Commit 95e6c6c

Browse files
authored
Merge pull request #92 from prezly/fix/gifs-alignment
[CARE-5989] Fix - GIFs alignment
2 parents 627fe33 + 4a3137b commit 95e6c6c

File tree

92 files changed

+7
-16
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+7
-16
lines changed

src/components/Media/Media.scss

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
@import "styles/mixins";
22
@import "styles/variables";
33

4-
.prezly-slate {
5-
&-media {
6-
display: block;
7-
max-width: 100%;
8-
height: auto;
9-
margin: 0 auto;
4+
.prezly-slate-media {
5+
display: block;
6+
max-width: 100%;
7+
height: auto;
108

11-
&--image {
12-
@media print {
13-
print-color-adjust: exact;
14-
}
9+
&--image {
10+
@media print {
11+
print-color-adjust: exact;
1512
}
1613
}
1714
}

src/components/Media/Media.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ interface Props {
1414
export function Media({ className, image, style, title }: Props) {
1515
const computedClassName = classNames('prezly-slate-media', className, {
1616
'prezly-slate-media--image': !image.isGif(),
17-
'prezly-slate-media--video': image.isGif(),
1817
});
1918

2019
if (image.isGif()) {

src/elements/Image/Image.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@
4444
}
4545
}
4646

47-
&--gif {
48-
display: block;
49-
}
50-
5147
&__link {
5248
position: relative;
5349
z-index: 0;

src/elements/Image/Image.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ export function Image({ children, className, node, onDownload, onPreviewOpen, ..
6363
'prezly-slate-image--full-width': layout === 'full-width',
6464
'prezly-slate-image--align-left': align === 'left',
6565
'prezly-slate-image--align-right': align === 'right',
66-
'prezly-slate-image--gif': image.isGif(),
6766
})}
6867
{...props}
6968
>

0 commit comments

Comments
 (0)