Skip to content

Commit 29a24dc

Browse files
committed
fixed message card style
1 parent 79616af commit 29a24dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/stack/src/components/message-cards/message-card.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ export function MessageCard(
1818
) {
1919
return (
2020
<MaybeFullPage fullPage={fullPage}>
21-
<div style={{ textAlign: 'center' }}>
22-
<Typography type='h3' className="mb-6">{props.title}</Typography>
21+
<div className="text-center stack-scope flex flex-col gap-4">
22+
<Typography type='h3'>{props.title}</Typography>
2323
{props.children}
2424
{(props.primaryButtonText || props.secondaryButtonText) && (
25-
<div style={{ display: 'flex', flexDirection: 'row', alignItems: 'center', justifyContent: 'center', gap: '16px', marginTop: 20 }}>
25+
<div className="flex justify-center gap-4 my-5">
2626
{props.secondaryButtonText && (
2727
<Button variant="secondary" onClick={props.secondaryAction}>
2828
{props.secondaryButtonText}

0 commit comments

Comments
 (0)