feat: suporte a tabelas markdown nas legendas, remoção de borda de imagens e separação de comentários no mural
This commit is contained in:
@@ -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,
|
||||
),
|
||||
],
|
||||
],
|
||||
],
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user