feat: suporte a tabelas markdown nas legendas, remoção de borda de imagens e separação de comentários no mural
Some checks failed
Main Deploy Workflow / deploy_web (push) Has been cancelled
Main Deploy Workflow / deploy_playstore_internal (push) Has been cancelled
Close stale issues and PRs / stale (push) Has been cancelled

This commit is contained in:
2026-09-15 17:24:18 -03:00
parent 43e0dc177c
commit ab8637bf6a
6 changed files with 157 additions and 32 deletions

View File

@@ -1280,10 +1280,11 @@ class _PostViewerState extends State<_PostViewer> {
),
),
)
else
...commentTree.map(
(node) => _CommentTile(
node: node,
else ...[
for (var i = 0; i < commentTree.length; i++) ...[
if (i > 0) const Divider(height: 1),
_CommentTile(
node: commentTree[i],
depth: 0,
timeline: widget.timeline,
currentUserId: widget.room.client.userID,
@@ -1295,7 +1296,8 @@ class _PostViewerState extends State<_PostViewer> {
onDelete: _deleteComment,
onReport: _reportComment,
),
),
],
],
],
),
),
@@ -1598,20 +1600,23 @@ class _CommentTile extends StatelessWidget {
),
],
),
...node.replies.map(
(reply) => _CommentTile(
node: reply,
depth: depth + 1,
timeline: timeline,
currentUserId: currentUserId,
onReply: onReply,
onToggleReaction: onToggleReaction,
onShowReactionPicker: onShowReactionPicker,
onOpenProfile: onOpenProfile,
onDelete: onDelete,
onReport: onReport,
),
),
...[
for (var i = 0; i < node.replies.length; i++) ...[
if (i > 0) const Divider(height: 1),
_CommentTile(
node: node.replies[i],
depth: depth + 1,
timeline: timeline,
currentUserId: currentUserId,
onReply: onReply,
onToggleReaction: onToggleReaction,
onShowReactionPicker: onShowReactionPicker,
onOpenProfile: onOpenProfile,
onDelete: onDelete,
onReport: onReport,
),
],
],
],
),
);