Skip to content

Commit 2544aeb

Browse files
committed
fix: button width in trash page
1 parent 893b6e0 commit 2544aeb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

frontend/app_flowy/lib/plugins/trash/trash.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,23 +140,23 @@ class _TrashPageState extends State<TrashPage> {
140140
return SizedBox(
141141
height: 36,
142142
child: Row(
143+
crossAxisAlignment: CrossAxisAlignment.stretch,
143144
children: [
144145
FlowyText.semibold(LocaleKeys.trash_text.tr()),
145146
const Spacer(),
146-
SizedBox.fromSize(
147-
size: const Size(102, 30),
147+
IntrinsicWidth(
148148
child: FlowyButton(
149149
text: FlowyText.medium(LocaleKeys.trash_restoreAll.tr(),
150150
fontSize: 12),
151151
leftIcon: svgWidget('editor/restore', color: theme.iconColor),
152152
hoverColor: theme.hover,
153-
onTap: () =>
154-
context.read<TrashBloc>().add(const TrashEvent.restoreAll()),
153+
onTap: () => context.read<TrashBloc>().add(
154+
const TrashEvent.restoreAll(),
155+
),
155156
),
156157
),
157158
const HSpace(6),
158-
SizedBox.fromSize(
159-
size: const Size(102, 30),
159+
IntrinsicWidth(
160160
child: FlowyButton(
161161
text: FlowyText.medium(LocaleKeys.trash_deleteAll.tr(),
162162
fontSize: 12),

0 commit comments

Comments
 (0)