Skip to content

Commit

Permalink
Limit add torrent dialog width to 480px
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Ray committed Dec 18, 2024
1 parent 3565974 commit 5be286e
Showing 1 changed file with 28 additions and 25 deletions.
53 changes: 28 additions & 25 deletions app/lib/dialogs/add_torrent.dart
Original file line number Diff line number Diff line change
Expand Up @@ -183,31 +183,34 @@ class _AddTorrentDialogState extends State<AddTorrentDialog> {

return AlertDialog(
title: const Text('Add a torrent'),
content: Form(
key: _formKey,
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
_buildTorrentLinkInput(),
_buildInputsSeparator(),
_buildFileInput(context),
if (!Platform.isAndroid) const SizedBox(height: 16),
if (!Platform.isAndroid)
Row(
children: [
const Text('Destination:'),
const SizedBox(width: 16),
Expanded(
child: TextButton(
onPressed: _handlePickDirectory,
child: Text(
downloadDir,
overflow: TextOverflow.ellipsis,
)),
)
],
)
],
content: SizedBox(
width: 480,
child: Form(
key: _formKey,
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
_buildTorrentLinkInput(),
_buildInputsSeparator(),
_buildFileInput(context),
if (!Platform.isAndroid) const SizedBox(height: 16),
if (!Platform.isAndroid)
Row(
children: [
const Text('Destination:'),
const SizedBox(width: 16),
Expanded(
child: TextButton(
onPressed: _handlePickDirectory,
child: Text(
downloadDir,
overflow: TextOverflow.ellipsis,
)),
)
],
)
],
),
),
),
actions: <Widget>[
Expand Down

0 comments on commit 5be286e

Please sign in to comment.