Skip to content

Commit 5fd9431

Browse files
committed
build fix
1 parent e7d715d commit 5fd9431

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/FlexibleSection.astro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ interface Props {
1212
theme?: "light" | "dark";
1313
bottomBorder?: boolean;
1414
leftRatio?: number;
15+
style?: string;
1516
}
1617
1718
const {
@@ -24,6 +25,7 @@ const {
2425
theme = "light",
2526
bottomBorder = true,
2627
leftRatio = 0.5,
28+
style,
2729
} = Astro.props;
2830
2931
// Calculate right ratio automatically
@@ -34,7 +36,7 @@ const rightRatio = 1 - leftRatio;
3436
class={clsx("flexible-section", `variant-${variant}`, `theme-${theme}`, className)}
3537
id={id}
3638
aria-labelledby={id ? `${id}-title` : undefined}
37-
style={`--left-ratio: ${leftRatio}; --right-ratio: ${rightRatio};`}
39+
style={`--left-ratio: ${leftRatio}; --right-ratio: ${rightRatio}; ${style || ''}`}
3840
>
3941
<ContentLimiter maxWidth={maxWidth}>
4042
<div class="flexible-content">

0 commit comments

Comments
 (0)