Skip to content

Commit cccb828

Browse files
committed
fix: unexpected line break in open file dialog
1 parent d677c1d commit cccb828

File tree

2 files changed

+2
-46
lines changed

2 files changed

+2
-46
lines changed

app/lib/widget/dialogs/encryption_disabled_notice.dart

Lines changed: 0 additions & 45 deletions
This file was deleted.

app/lib/widget/dialogs/open_file_dialog.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ class _OpenFileDialogState extends State<OpenFileDialog> {
6969
return ContentDialog(
7070
title: Text(t.dialogs.openFile.title),
7171
content: Text(t.dialogs.openFile.content),
72+
constraints: BoxConstraints(maxWidth: 568.0, maxHeight: 756.0),
7273
actions: [
7374
FilledButton(
7475
onPressed: () async => openFile(context, widget.fileType, widget.filePath),
@@ -79,7 +80,7 @@ class _OpenFileDialogState extends State<OpenFileDialog> {
7980
folderPath: File(widget.filePath).parent.path,
8081
fileName: path.basename(widget.filePath),
8182
),
82-
child: Text(t.receiveHistoryPage.entryActions.showInFolder),
83+
child: Text(t.receiveHistoryPage.entryActions.showInFolder, maxLines: 1),
8384
),
8485
Button(
8586
onPressed: () {

0 commit comments

Comments
 (0)