File tree Expand file tree Collapse file tree
packages/page-blocks/src/blocks/media Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { Image, VideoWithPreview } from "@courselit/components-library";
55import { isVideo } from "@courselit/utils" ;
66import { Section } from "@courselit/page-primitives" ;
77import { ThemeStyle } from "@courselit/page-models" ;
8+ import clsx from "clsx" ;
89
910const twRoundedMap = {
1011 "0" : "rounded-none" ,
@@ -46,7 +47,10 @@ export default function Widget({
4647 { hasHeroGraphic && (
4748 < div >
4849 < div
49- className = { `w-full text-center overflow-hidden ${ twRoundedMap [ mediaRadius ] } ` }
50+ className = { clsx (
51+ "w-full text-center overflow-hidden border" ,
52+ twRoundedMap [ mediaRadius ] ,
53+ ) }
5054 style = { {
5155 width : "100%" ,
5256 } }
@@ -72,7 +76,10 @@ export default function Widget({
7276 ) }
7377 { ! hasHeroGraphic && (
7478 < div
75- className = { `w-full text-center overflow-hidden ${ twRoundedMap [ mediaRadius ] } ` }
79+ className = { clsx (
80+ "w-full text-center overflow-hidden border" ,
81+ twRoundedMap [ mediaRadius ] ,
82+ ) }
7683 style = { {
7784 width : "100%" ,
7885 } }
You can’t perform that action at this time.
0 commit comments