Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit aed247f

Browse files
committed
Move toast detail to a new line
1 parent fd59a66 commit aed247f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/components/views/toasts/GenericToast.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,14 @@ const GenericToast: React.FC<XOR<IPropsExtended, IProps>> = ({
4040
onAccept,
4141
onReject,
4242
}) => {
43-
const detailContent = detail ? <span className="mx_Toast_detail">
43+
const detailContent = detail ? <div className="mx_Toast_detail">
4444
{detail}
45-
</span> : null;
45+
</div> : null;
4646

4747
return <div>
4848
<div className="mx_Toast_description">
49-
{description}&nbsp;{detailContent}
49+
{description}
50+
{detailContent}
5051
</div>
5152
<div className="mx_Toast_buttons" aria-live="off">
5253
{onReject && rejectLabel && <FormButton label={rejectLabel} kind="danger" onClick={onReject} /> }

0 commit comments

Comments
 (0)