mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
feat(mobile): Add Scrollbar for vertical scrolling on the actions button multi-select (#18940)
* feat(mobile): Add Scrollbar for vertical scrolling on the actions button of a selected asset. * fixed error scroll position and add more space for the scrollbar * revert scrollbar change and display always 5.5 icons button * minWidth set to 5.5 and used * fix: logic and fine tuning --------- Co-authored-by: Alex <alex.tran1502@gmail.com>
This commit is contained in:
parent
b50d9fa448
commit
c03e72c1da
2 changed files with 9 additions and 9 deletions
|
|
@ -33,6 +33,9 @@ class ControlBoxButton extends StatelessWidget {
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final minWidth =
|
||||
context.isMobile ? MediaQuery.sizeOf(context).width / 4.5 : 75.0;
|
||||
|
||||
return MaterialButton(
|
||||
padding: const EdgeInsets.all(10),
|
||||
shape: const RoundedRectangleBorder(
|
||||
|
|
@ -40,7 +43,7 @@ class ControlBoxButton extends StatelessWidget {
|
|||
),
|
||||
onPressed: onPressed,
|
||||
onLongPress: onLongPressed,
|
||||
minWidth: 75.0,
|
||||
minWidth: minWidth,
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue