Skip to content

Commit ea92bca

Browse files
committed
Applied border
1 parent 5c9cbb1 commit ea92bca

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

packages/page-blocks/src/blocks/media/widget.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { Image, VideoWithPreview } from "@courselit/components-library";
55
import { isVideo } from "@courselit/utils";
66
import { Section } from "@courselit/page-primitives";
77
import { ThemeStyle } from "@courselit/page-models";
8+
import clsx from "clsx";
89

910
const 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
}}

0 commit comments

Comments
 (0)