fix: font size being too large accidentally in some places

This commit is contained in:
Sorunome 2020-09-20 19:16:23 +02:00
parent 8cd8f90501
commit 43dd22251c
No known key found for this signature in database
GPG Key ID: B19471D07FC9BE9C
3 changed files with 9 additions and 5 deletions

View File

@ -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),

View File

@ -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"

View File

@ -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