Skip to content

Commit

Permalink
#1 修正
Browse files Browse the repository at this point in the history
  • Loading branch information
shiosyakeyakini-info committed Aug 21, 2023
1 parent 8fd348f commit 23f474d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/view/common/misskey_notes/misskey_note.dart
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ class MisskeyNoteState extends ConsumerState<MisskeyNote> {
.select((value) => value.noteStatuses[widget.note.id]!.isLongVisible));

return MediaQuery(
data: MediaQueryData(
data: MediaQuery.of(context).copyWith(
textScaleFactor: MediaQuery.of(context).textScaleFactor *
(widget.recursive > 1 ? 0.7 : 1)),
child: RepaintBoundary(
Expand Down
4 changes: 3 additions & 1 deletion lib/view/common/misskey_notes/reaction_button.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'dart:math';

import 'package:flutter/material.dart';
import 'package:miria/model/account.dart';
import 'package:miria/model/misskey_emoji_data.dart';
Expand Down Expand Up @@ -113,7 +115,7 @@ class ReactionButtonState extends ConsumerState<ReactionButton> {
children: [
ConstrainedBox(
constraints: BoxConstraints(
maxWidth: double.infinity,
maxWidth: min(MediaQuery.of(context).size.width, 800) * 0.75,
minHeight: 24 * MediaQuery.of(context).textScaleFactor,
maxHeight: 24 * MediaQuery.of(context).textScaleFactor,
),
Expand Down

0 comments on commit 23f474d

Please sign in to comment.