mod: image width on html page

This commit is contained in:
bggRGjQaUbCoE
2024-09-14 01:02:55 +08:00
parent 78a9b45c75
commit 58613aaa27

View File

@@ -1,8 +1,5 @@
import 'dart:ffi';
import 'package:flutter/material.dart';
import 'package:flutter_html/flutter_html.dart';
import 'package:get/get.dart';
import '../../utils/storage.dart';
import 'network_img_layer.dart';
@@ -62,7 +59,7 @@ class HtmlRender extends StatelessWidget {
// height: isEmote ? 22 : null,
// );
return NetworkImgLayer(
width: isEmote ? 22 : (constrainedWidth - 23) / textScale,
width: isEmote ? 22 : constrainedWidth / textScale,
height: isEmote ? 22 : 200,
src: imgUrl,
ignoreHeight: !isEmote,