Skip to content

Commit cc5cc38

Browse files
fix: browse files button size (#23)
1 parent ba2593e commit cc5cc38

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

lib/screens/settings/components/current_command.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class CurrentCommandContainer extends StatelessWidget {
7373
color: kBgLightColor,
7474
),
7575
child: Padding(
76-
padding: const EdgeInsets.only(top: 10, left: 10),
76+
padding: const EdgeInsets.only(left: 10),
7777
child: SelectableText(
7878
'ccextractor --gui_mode_reports ${paramsList.reduce((value, element) => value + ' ' + element)} +[input files]',
7979
// maxLines: 2,

lib/screens/settings/components/custom_path_button.dart

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class _CustomGetFilePathButtonState extends State<CustomGetFilePathButton> {
4444
final ScrollController _scrollController = ScrollController();
4545
@override
4646
Widget build(BuildContext context) {
47+
Size screensize = MediaQuery.of(context).size;
4748
_scrollController.hasClients
4849
? _scrollController.animateTo(
4950
0.0,
@@ -59,7 +60,9 @@ class _CustomGetFilePathButtonState extends State<CustomGetFilePathButton> {
5960
trailing: MouseRegion(
6061
cursor: SystemMouseCursors.click,
6162
child: Container(
62-
width: Responsive.isDesktop(context) ? 300 : 100,
63+
width: Responsive.isDesktop(context)
64+
? screensize.width * 0.25
65+
: screensize.width * 0.145,
6366
child: Row(
6467
children: [
6568
Tooltip(
@@ -75,7 +78,9 @@ class _CustomGetFilePathButtonState extends State<CustomGetFilePathButton> {
7578
width: 10,
7679
),
7780
Container(
78-
width: Responsive.isDesktop(context) ? 250 : 50,
81+
width: Responsive.isDesktop(context)
82+
? screensize.width * 0.205
83+
: screensize.width * 0.081,
7984
height: 46,
8085
color: kBgLightColor,
8186
child: MaterialButton(

0 commit comments

Comments
 (0)