From a5b7891269b9d43af4d69085cf985d5607219848 Mon Sep 17 00:00:00 2001 From: Cristi Date: Thu, 13 Jun 2024 00:13:47 +0300 Subject: [PATCH] fix stylings --- apps/web/components/tailwind/extensions.ts | 2 +- packages/headless/src/extensions/twitter.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/components/tailwind/extensions.ts b/apps/web/components/tailwind/extensions.ts index 9b90b514..bf104fc6 100644 --- a/apps/web/components/tailwind/extensions.ts +++ b/apps/web/components/tailwind/extensions.ts @@ -125,7 +125,7 @@ const youtube = Youtube.configure({ const twitter = Twitter.configure({ HTMLAttributes: { - class: cx("rounded-lg border border-muted"), + class: cx("not-prose"), }, inline: false, }); diff --git a/packages/headless/src/extensions/twitter.tsx b/packages/headless/src/extensions/twitter.tsx index c01d2bb4..a28ba180 100644 --- a/packages/headless/src/extensions/twitter.tsx +++ b/packages/headless/src/extensions/twitter.tsx @@ -85,7 +85,7 @@ export const Twitter = Node.create({ }, addNodeView() { - return ReactNodeViewRenderer(TweetComponent); + return ReactNodeViewRenderer(TweetComponent, { attrs: this.options.HTMLAttributes }); }, inline() {