fix: font size being too large accidentally in some places
This commit is contained in:
parent
8cd8f90501
commit
43dd22251c
|
@ -49,7 +49,9 @@ class MessageContent extends StatelessWidget {
|
|||
if (event.messageType == MessageTypes.Emote) {
|
||||
html = '* $html';
|
||||
}
|
||||
final bigEmotes = event.onlyEmotes && event.numberEmotes <= 10;
|
||||
final bigEmotes = event.onlyEmotes &&
|
||||
event.numberEmotes > 0 &&
|
||||
event.numberEmotes <= 10;
|
||||
final fontSize = DefaultTextStyle.of(context).style.fontSize;
|
||||
return HtmlMessage(
|
||||
html: html,
|
||||
|
@ -81,7 +83,9 @@ class MessageContent extends StatelessWidget {
|
|||
onPressed: () => launch(event.body),
|
||||
);
|
||||
}
|
||||
final bigEmotes = event.onlyEmotes && event.numberEmotes <= 10;
|
||||
final bigEmotes = event.onlyEmotes &&
|
||||
event.numberEmotes > 0 &&
|
||||
event.numberEmotes <= 10;
|
||||
final fontSize = DefaultTextStyle.of(context).style.fontSize;
|
||||
return LinkText(
|
||||
text: event.getLocalizedBody(L10n.of(context), hideReply: true),
|
||||
|
|
|
@ -180,8 +180,8 @@ packages:
|
|||
dependency: "direct main"
|
||||
description:
|
||||
path: "."
|
||||
ref: ba7a01ddea430a6eec2661e2f9b7714d3719c652
|
||||
resolved-ref: ba7a01ddea430a6eec2661e2f9b7714d3719c652
|
||||
ref: d42979da12ad6749a3c47c67dc4fb0f0f57420b4
|
||||
resolved-ref: d42979da12ad6749a3c47c67dc4fb0f0f57420b4
|
||||
url: "https://gitlab.com/famedly/famedlysdk.git"
|
||||
source: git
|
||||
version: "0.0.1"
|
||||
|
|
|
@ -27,7 +27,7 @@ dependencies:
|
|||
famedlysdk:
|
||||
git:
|
||||
url: https://gitlab.com/famedly/famedlysdk.git
|
||||
ref: ba7a01ddea430a6eec2661e2f9b7714d3719c652
|
||||
ref: d42979da12ad6749a3c47c67dc4fb0f0f57420b4
|
||||
|
||||
localstorage: ^3.0.1+4
|
||||
memoryfilepicker: ^0.1.3
|
||||
|
|
Loading…
Reference in a new issue