From 8414c0f71f0e08a92a874475ae523242d7b44139 Mon Sep 17 00:00:00 2001 From: bggRGjQaUbCoE Date: Thu, 3 Jul 2025 14:13:31 +0800 Subject: [PATCH] tweak Signed-off-by: bggRGjQaUbCoE --- lib/common/widgets/text_field/controller.dart | 1 + lib/utils/accounts/account.dart | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/common/widgets/text_field/controller.dart b/lib/common/widgets/text_field/controller.dart index 1000cb16..a17a0d59 100644 --- a/lib/common/widgets/text_field/controller.dart +++ b/lib/common/widgets/text_field/controller.dart @@ -763,6 +763,7 @@ class RichTextEditingController extends TextEditingController { final emote = e.emote; if (emote != null) { return WidgetSpan( + alignment: PlaceholderAlignment.middle, child: Padding( padding: const EdgeInsets.symmetric(horizontal: 2), child: NetworkImgLayer( diff --git a/lib/utils/accounts/account.dart b/lib/utils/accounts/account.dart index 9fd4801d..d7a13ff0 100644 --- a/lib/utils/accounts/account.dart +++ b/lib/utils/accounts/account.dart @@ -73,10 +73,12 @@ class LoginAccount implements Account { LoginAccount(this.cookieJar, this.accessKey, this.refresh, [Set? type]) - : type = type ?? {}; + : type = type ?? {} { + cookieJar.setBuvid3(); + } LoginAccount.fromJson(Map json) { - cookieJar = BiliCookieJar.fromJson(json['cookies']); + cookieJar = BiliCookieJar.fromJson(json['cookies'])..setBuvid3(); accessKey = json['accessKey']; refresh = json['refresh']; type = (json['type'] as Iterable?)