mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-10-27 12:56:23 -04:00
improve tweet styling
This commit is contained in:
1 file changed
+7
-1
Vendored
+7
-1
@@ -14,7 +14,13 @@ const Tweet = async ({ id, className }: { id: string; className?: string }) => {
|
|||||||
const { data } = await fetchTweet(id);
|
const { data } = await fetchTweet(id);
|
||||||
|
|
||||||
return (
|
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 ? (
|
{data ? (
|
||||||
<EmbeddedTweet
|
<EmbeddedTweet
|
||||||
tweet={data}
|
tweet={data}
|
||||||
|
|||||||
Reference in new issue
Block a user