about summary refs log tree commit diff
path: root/src/components/RichText.tsx
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2024-02-20 11:03:04 -0600
committerGitHub <noreply@github.com>2024-02-20 11:03:04 -0600
commitdf5a8f15427f8efeded692e21585e48df4907c3a (patch)
treebfee3cd3c31bd07a63109012d2e21d350d555f8b /src/components/RichText.tsx
parent8a169dc6a14d422f65ea4afb5af7fe30efacf2bb (diff)
downloadvoidsky-df5a8f15427f8efeded692e21585e48df4907c3a.tar.zst
Swap `RichText` (#2934)
* Switch to new RT

* Allow early exit from links

* Build in tracking to text atoms

* Clean up FeedSourceCard

* Clean up leading after new default

* Add deprecated notice
Diffstat (limited to 'src/components/RichText.tsx')
-rw-r--r--src/components/RichText.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/RichText.tsx b/src/components/RichText.tsx
index 8aeef9ea1..c72fcabdd 100644
--- a/src/components/RichText.tsx
+++ b/src/components/RichText.tsx
@@ -1,7 +1,7 @@
 import React from 'react'
 import {RichText as RichTextAPI, AppBskyRichtextFacet} from '@atproto/api'
 
-import {atoms as a, TextStyleProp} from '#/alf'
+import {atoms as a, TextStyleProp, flatten} from '#/alf'
 import {InlineLink} from '#/components/Link'
 import {Text, TextProps} from '#/components/Typography'
 import {toShortUrl} from 'lib/strings/url-helpers'
@@ -29,7 +29,7 @@ export function RichText({
   const [richText, setRichText] = React.useState<RichTextAPI>(() =>
     value instanceof RichTextAPI ? value : new RichTextAPI({text: value}),
   )
-  const styles = [a.leading_normal, style]
+  const styles = [a.leading_snug, flatten(style)]
 
   React.useEffect(() => {
     if (!resolveFacets) return