We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f985afe commit 098b01eCopy full SHA for 098b01e
src/components/Post.tsx
@@ -213,13 +213,20 @@ function PostContent({ post }: PostContentProps) {
213
/>
214
)}
215
{post.poll != null && <Poll poll={post.poll} />}
216
- {post.media.length > 0 && (
+ {post.media.map((medium) => (
217
<div>
218
- {post.media.map((medium) => (
219
- <Medium medium={medium} />
220
- ))}
+ <Medium medium={medium} />
+ {medium.description && medium.description.trim() !== "" && (
+ <>
221
+ <hr />
222
+ <details>
223
+ <summary>ALT text details</summary>
224
+ {medium.description}
225
+ </details>
226
+ </>
227
+ )}
228
</div>
- )}
229
+ ))}
230
{post.quoteTarget != null && (
231
<Post
232
post={{ ...post.quoteTarget, sharing: null, quoteTarget: null }}
0 commit comments