Skip to content

Commit

Permalink
fix: add border-radius for media block image (#832)
Browse files Browse the repository at this point in the history
  • Loading branch information
qradle-yndx authored Feb 27, 2024
1 parent b550cba commit 6421ec8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/blocks/Media/Media.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ $block: '.#{$ns}media-block';

#{$block} {
@include media-border();

&__image {
border-radius: $borderRadius;
}
}
7 changes: 6 additions & 1 deletion src/blocks/Media/Media.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ export const MediaBlock = (props: MediaBlockProps) => {
return (
<MediaBase {...props} onScroll={() => setPlay(true)}>
<MediaBase.Card>
<Media {...mediaThemed} playVideo={play} className={b({border: borderSelected})} />
<Media
imageClassName={b('image')}
{...mediaThemed}
playVideo={play}
className={b({border: borderSelected})}
/>
</MediaBase.Card>
</MediaBase>
);
Expand Down

0 comments on commit 6421ec8

Please sign in to comment.