fixed display dimensions of messages with files

This commit is contained in:
2025-09-06 15:33:14 +02:00
parent 344f8f6d2c
commit 9177c30d6e

View File

@@ -38,10 +38,6 @@ class ChatMessage {
padding: const EdgeInsets.only(top: 5), padding: const EdgeInsets.only(top: 5),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(
mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
CachedNetworkImage( CachedNetworkImage(
errorWidget: (context, url, error) => Row( errorWidget: (context, url, error) => Row(
@@ -59,12 +55,12 @@ class ChatMessage {
fadeInDuration: Duration.zero, fadeInDuration: Duration.zero,
fadeOutDuration: Duration.zero, fadeOutDuration: Duration.zero,
errorListener: (value) {}, errorListener: (value) {},
imageUrl: 'https://${AccountData().buildHttpAuthString()}@${EndpointData().nextcloud().full()}/index.php/core/preview?fileId=${file!.id}&x=100&y=-1&a=1', imageUrl: 'https://${AccountData().buildHttpAuthString()}@${EndpointData().nextcloud().full()}/index.php/core/preview?fileId=${file!.id}&x=130&y=-1&a=1',
)
],
), ),
if(originalMessage != '{file}') ...[
SizedBox(height: 5), SizedBox(height: 5),
contentWidget contentWidget
]
], ],
) )
); );