mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-10-30 03:16:03 -04:00
improve tweet styling
This commit is contained in:
8
components/third-party/tweet.tsx
vendored
8
components/third-party/tweet.tsx
vendored
@@ -14,7 +14,13 @@ const Tweet = async ({ id, className }: { id: string; className?: string }) => {
|
||||
const { data } = await fetchTweet(id);
|
||||
|
||||
return (
|
||||
<div className={cn("min-h-30 *:mx-auto! *:font-sans!", className)}>
|
||||
<div
|
||||
className={cn(
|
||||
"my-6 min-h-30",
|
||||
"*:[--tweet-body-font-size:var(--text-base)]! *:[--tweet-body-line-height:var(--leading-normal)]! *:[--tweet-container-margin:0_auto]! *:[--tweet-font-family:var(--font-sans)]! *:[--tweet-info-font-size:var(--text-sm)]! *:[--tweet-info-line-height:var(--leading-normal)]!",
|
||||
className
|
||||
)}
|
||||
>
|
||||
{data ? (
|
||||
<EmbeddedTweet
|
||||
tweet={data}
|
||||
|
||||
Reference in New Issue
Block a user