Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-08-30 14:50:54 +08:00
parent 80fa0240e9
commit 8d94c0405f
115 changed files with 3150 additions and 1438 deletions

View File

@@ -192,13 +192,16 @@ class LiveRoomChatPanel extends StatelessWidget {
final uemote = obj.uemote;
if (uemote != null) {
// "room_{{room_id}}_{{int}}" or "upower_[{{emote}}]"
final isUpower = uemote.isUpower;
return WidgetSpan(
child: NetworkImgLayer(
src: uemote.url,
type: ImageType.emote,
width: uemote.width / devicePixelRatio,
width: isUpower ? uemote.width : uemote.width / devicePixelRatio,
height: uemote.height == null
? null
: isUpower
? uemote.height!
: uemote.height! / devicePixelRatio,
semanticsLabel: obj.text,
),