Skip to content

Commit 8bfdbdb

Browse files
authored
Removing margin on last p tags (#299)
## Description Removing extra margin on the last p tags in the box components ## Screenshot (optional) Before: <img width="858" height="148" alt="image" src="https://github.com/user-attachments/assets/e3335e8d-90e1-4c32-bc16-0814c6a28771" /> After: <img width="856" height="142" alt="image" src="https://github.com/user-attachments/assets/ff22143b-1c1b-4aba-81ab-e8e26882d201" />
1 parent 5be0bb8 commit 8bfdbdb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/embeds/boxEmbed.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export function BoxEmbed(props: any) {
9393
<div className={`p-4 rounded-sm my-4 ${config.containerClass}`}>
9494
<div className="flex items-start">
9595
{config.icon}
96-
<div className={`${config.textClass ?? ""}`}>
96+
<div className={`[&_p:last-child]:mb-0 ${config.textClass ?? ""}`}>
9797
<div>
9898
<TinaMarkdown content={data.body} components={MarkdownComponentMapping} />
9999
</div>

tina/tina-lock.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)