Skip to content

Commit

Permalink
Merge pull request #92 from prezly/fix/gifs-alignment
Browse files Browse the repository at this point in the history
[CARE-5989] Fix - GIFs alignment
  • Loading branch information
yuriyyakym authored Sep 3, 2024
2 parents 627fe33 + 4a3137b commit 95e6c6c
Show file tree
Hide file tree
Showing 92 changed files with 7 additions and 16 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .loki/reference/chrome_iphone7_Elements_Gallery_Expanded.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .loki/reference/chrome_iphone7_Elements_Gallery_Full_Width.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .loki/reference/chrome_iphone7_Elements_Image_Full_Width.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .loki/reference/chrome_iphone7_Elements_Image_Left_Aligned.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .loki/reference/chrome_iphone7_Elements_Image_Right_Aligned.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .loki/reference/chrome_iphone7_Elements_Image_Width_100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .loki/reference/chrome_iphone7_Elements_Image_Width_45.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .loki/reference/chrome_laptop_Elements_Bookmark_Big_Vertical.png
Binary file modified .loki/reference/chrome_laptop_Elements_Gallery_Expanded.png
Binary file modified .loki/reference/chrome_laptop_Elements_Gallery_Full_Width.png
Binary file modified .loki/reference/chrome_laptop_Elements_Image_Full_Width.png
Binary file modified .loki/reference/chrome_laptop_Elements_Image_Left_Aligned.png
Binary file modified .loki/reference/chrome_laptop_Elements_Image_Right_Aligned.png
Binary file modified .loki/reference/chrome_laptop_Elements_Image_Width_100.png
Binary file modified .loki/reference/chrome_laptop_Elements_Image_Width_45.png
Binary file modified .loki/reference/chrome_laptop_Elements_Image_With_Caption.png
Binary file modified .loki/reference/chrome_laptop_Elements_Image_Without_Caption.png
Binary file modified .loki/reference/chrome_narrow_Elements_Bookmark_Big_Vertical.png
Binary file modified .loki/reference/chrome_narrow_Elements_Gallery_Expanded.png
Binary file modified .loki/reference/chrome_narrow_Elements_Gallery_Full_Width.png
Binary file modified .loki/reference/chrome_narrow_Elements_Image_Full_Width.png
Binary file modified .loki/reference/chrome_narrow_Elements_Image_Left_Aligned.png
Binary file modified .loki/reference/chrome_narrow_Elements_Image_Right_Aligned.png
Binary file modified .loki/reference/chrome_narrow_Elements_Image_Width_100.png
Binary file modified .loki/reference/chrome_narrow_Elements_Image_Width_45.png
Binary file modified .loki/reference/chrome_narrow_Elements_Image_With_Caption.png
Binary file modified .loki/reference/chrome_narrow_Elements_Image_Without_Caption.png
17 changes: 7 additions & 10 deletions src/components/Media/Media.scss
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
@import "styles/mixins";
@import "styles/variables";

.prezly-slate {
&-media {
display: block;
max-width: 100%;
height: auto;
margin: 0 auto;
.prezly-slate-media {
display: block;
max-width: 100%;
height: auto;

&--image {
@media print {
print-color-adjust: exact;
}
&--image {
@media print {
print-color-adjust: exact;
}
}
}
1 change: 0 additions & 1 deletion src/components/Media/Media.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ interface Props {
export function Media({ className, image, style, title }: Props) {
const computedClassName = classNames('prezly-slate-media', className, {
'prezly-slate-media--image': !image.isGif(),
'prezly-slate-media--video': image.isGif(),
});

if (image.isGif()) {
Expand Down
4 changes: 0 additions & 4 deletions src/elements/Image/Image.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@
}
}

&--gif {
display: block;
}

&__link {
position: relative;
z-index: 0;
Expand Down
1 change: 0 additions & 1 deletion src/elements/Image/Image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ export function Image({ children, className, node, onDownload, onPreviewOpen, ..
'prezly-slate-image--full-width': layout === 'full-width',
'prezly-slate-image--align-left': align === 'left',
'prezly-slate-image--align-right': align === 'right',
'prezly-slate-image--gif': image.isGif(),
})}
{...props}
>
Expand Down

0 comments on commit 95e6c6c

Please sign in to comment.