add default height for emoticons
This commit is contained in:
parent
f860d9651f
commit
624127f3a8
1 changed files with 4 additions and 1 deletions
|
|
@ -33,7 +33,10 @@ class Html extends ConsumerWidget {
|
|||
return InlineCustomWidget(child: SpoilerText(text: element.text));
|
||||
}
|
||||
|
||||
final height = int.tryParse(element.attributes["height"] ?? "") ?? 300;
|
||||
final height =
|
||||
int.tryParse(element.attributes["height"] ?? "") ??
|
||||
(element.attributes.keys.contains("data-mx-emoticon") ? 32 : null) ??
|
||||
300;
|
||||
final width = int.tryParse(element.attributes["width"] ?? "");
|
||||
final src = Uri.tryParse(element.attributes["src"] ?? "")
|
||||
?.mxcToHttps(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue