Skip to content

Commit

Permalink
TW-795: fixed link styles and center
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian KOUNE committed Oct 18, 2023
1 parent 824179a commit e5628ea
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
12 changes: 4 additions & 8 deletions lib/pages/chat/events/message_content.dart
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,6 @@ class MessageContent extends StatelessWidget with PlayVideoActionMixin {
);
}

final bigEmotes = event.onlyEmotes &&
event.numberEmotes > 0 &&
event.numberEmotes <= 10;
return FutureBuilder<String>(
future: event.calcLocalizedBody(
MatrixLocals(L10n.of(context)!),
Expand All @@ -263,11 +260,10 @@ class MessageContent extends StatelessWidget with PlayVideoActionMixin {
Theme.of(context).textTheme.bodyLarge?.copyWith(
color: Theme.of(context).colorScheme.onSurface,
),
linkStyle: TextStyle(
color: Theme.of(context).colorScheme.secondary,
fontSize: bigEmotes ? fontSize * 3 : fontSize,
decorationColor: textColor.withAlpha(150),
),
linkStyle:
Theme.of(context).textTheme.bodyLarge?.copyWith(
color: Theme.of(context).colorScheme.secondary,
),
childWidget: Visibility(
visible: false,
maintainSize: true,
Expand Down
4 changes: 2 additions & 2 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1575,8 +1575,8 @@ packages:
dependency: "direct main"
description:
path: "."
ref: "feat/add-text-span-builder"
resolved-ref: f159e4de7db4a70fa1830cf7c4a066979aa1464d
ref: twake-supported
resolved-ref: "326f4ef15303bbbd13971912fd84e936b60e521d"
url: "https://github.com/linagora/matrix_link_text.git"
source: git
version: "2.0.0"
Expand Down
9 changes: 5 additions & 4 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ dependencies:
keyboard_shortcuts: ^0.1.4
latlong2: ^0.8.1
matrix:
git:
git:
url: [email protected]:linagora/matrix-dart-sdk.git
ref: twake-supported-0.22.4
matrix_homeserver_recommendations: ^0.3.0
Expand Down Expand Up @@ -269,12 +269,13 @@ dependency_overrides:
url: https://github.com/chandrabezzo/wakelock.git
ref: main
path: wakelock_windows/
# TODO: Remove it after this PR merged
# TODO: Remove this part after upstream contribution is merged
# https://github.com/Sorunome/matrix_link_text/pull/4
# https://github.com/Sorunome/matrix_link_text/pull/5
matrix_link_text:
git:
git:
url: https://github.com/linagora/matrix_link_text.git
ref: feat/add-text-span-builder
ref: twake-supported

cider:
link_template:
Expand Down

0 comments on commit e5628ea

Please sign in to comment.