Skip to content

Commit

Permalink
style: make mastodon posts actually show the content, which seems imp…
Browse files Browse the repository at this point in the history
…ortant
  • Loading branch information
ejfox committed Aug 16, 2024
1 parent 3d46bf5 commit c9b873d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions components/Scrap/Mastodon.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<template>
<div class="post">
<div class="post p-8">
<div class="content">
<div v-if="parsedMarkdown" class="p-4 font-serif prose prose-2xl dark:prose-invert max-w-none">
<ContentRenderer :value="parsedMarkdown" />
</div>
<div v-html="scrap.content" />
<!-- if it has any images in the image metadata, show them all -->
<div v-if="scrap.metadata.images" :class="[scrap.metadata.images.length > 1 ? 'grid grid-cols-2 gap-4' : '']">
<img v-for="image in scrap.metadata.images" :key="image.url" :src="image.url" alt="Scrap Image" />
Expand Down

0 comments on commit c9b873d

Please sign in to comment.