diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-05-06 22:14:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-06 22:14:00 +0100 |
commit | 136b0e12abe4c4c00c15374c018dee36c522ec38 (patch) | |
tree | dbf4de0722c09bff75d8a4c31097ab80c4e71659 /src/components/Prompt.tsx | |
parent | fdb5ffff53dfa1584f834b14e88cb03a4a615fb0 (diff) | |
download | voidsky-136b0e12abe4c4c00c15374c018dee36c522ec38.tar.zst |
make gif alt text prompt selectable (#3879)
Diffstat (limited to 'src/components/Prompt.tsx')
-rw-r--r-- | src/components/Prompt.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/components/Prompt.tsx b/src/components/Prompt.tsx index 327bbbaa2..92e848e8e 100644 --- a/src/components/Prompt.tsx +++ b/src/components/Prompt.tsx @@ -62,12 +62,16 @@ export function TitleText({children}: React.PropsWithChildren<{}>) { ) } -export function DescriptionText({children}: React.PropsWithChildren<{}>) { +export function DescriptionText({ + children, + selectable, +}: React.PropsWithChildren<{selectable?: boolean}>) { const t = useTheme() const {descriptionId} = React.useContext(Context) return ( <Text nativeID={descriptionId} + selectable={selectable} style={[a.text_md, a.leading_snug, t.atoms.text_contrast_high, a.pb_lg]}> {children} </Text> |