💄 Optimize fediverse mention rendering, etc
This commit is contained in:
@@ -425,6 +425,7 @@ class PostItem extends HookConsumerWidget {
|
||||
content: translatedText.value!,
|
||||
isSelectable: isTextSelectable,
|
||||
attachments: item.attachments,
|
||||
noMentionChip: item.fediverseUri != null,
|
||||
),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -205,6 +205,7 @@ class PostItemScreenshot extends ConsumerWidget {
|
||||
child: MarkdownTextContent(
|
||||
content: post.content!,
|
||||
attachments: post.attachments,
|
||||
noMentionChip: item.fediverseUri != null,
|
||||
).padding(top: 2),
|
||||
)
|
||||
else
|
||||
|
||||
@@ -199,6 +199,7 @@ class PostReplyPreview extends HookConsumerWidget {
|
||||
child: MarkdownTextContent(
|
||||
content: _convertContentToMarkdown(post),
|
||||
attachments: post.attachments,
|
||||
noMentionChip: post.fediverseUri != null,
|
||||
).padding(top: 2),
|
||||
)
|
||||
else
|
||||
@@ -607,6 +608,7 @@ class ReferencedPostWidget extends StatelessWidget {
|
||||
? const EdgeInsets.only(bottom: 4)
|
||||
: null,
|
||||
attachments: item.attachments,
|
||||
noMentionChip: item.fediverseUri != null,
|
||||
).padding(bottom: 4),
|
||||
if (referencePost.isTruncated)
|
||||
const PostTruncateHint(
|
||||
@@ -1070,6 +1072,7 @@ class PostBody extends ConsumerWidget {
|
||||
MarkdownTextContent(
|
||||
content: '${_convertContentToMarkdown(item)}...',
|
||||
attachments: item.attachments,
|
||||
noMentionChip: item.fediverseUri != null,
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -1109,6 +1112,7 @@ class PostBody extends ConsumerWidget {
|
||||
: _convertContentToMarkdown(item),
|
||||
isSelectable: isTextSelectable,
|
||||
attachments: item.attachments,
|
||||
noMentionChip: item.fediverseUri != null,
|
||||
),
|
||||
if (translationSection != null) translationSection!,
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user