Adjust avi and type sizing

This commit is contained in:
Eric Bailey
2025-03-16 12:14:04 -05:00
parent d74c1678b2
commit 023dbc3032
2 changed files with 17 additions and 19 deletions
+1 -2
View File
@@ -37,7 +37,6 @@ export function Post({
}) {
if (AppBskyFeedPost.isValidRecord(post.record)) {
const avatar = data.images.get(post.author.avatar)
console.log(avatar.colors.vibrant)
const rt = post.record.text
? new RichTextApi({
text: post.record.text,
@@ -76,7 +75,7 @@ export function Post({
]}>
<Box cx={[a.flex_row, a.align_center, a.gap_sm, a.pb_sm]}>
<Avatar
size={48}
size={42}
image={avatar}
profile={post.author}
moderatorData={moderatorData}
+16 -17
View File
@@ -2,6 +2,8 @@ import React from 'react'
import {atoms as a, style as s, theme as t} from '../theme/index.js'
const SCALE_MULTIPLIER = 1 - 0.0625
export function Text({
children,
cx,
@@ -9,21 +11,18 @@ export function Text({
children?: React.ReactNode
cx?: Record<string, any>[]
}) {
return (
<div
style={s([
a.flex,
a.flex_wrap,
{
columnGap: '1px',
},
a.font_normal,
a.leading_tight,
a.tracking_wide,
t.atoms.text,
...(cx ?? []),
])}>
{children}
</div>
)
const styles = s([
a.flex,
a.flex_wrap,
{
columnGap: '1px',
},
a.font_normal,
a.leading_tight,
a.tracking_wide,
t.atoms.text,
...(cx ?? []),
])
styles.fontSize = (styles.fontSize || a.text_md.fontSize) * SCALE_MULTIPLIER
return <div style={styles}>{children}</div>
}