Skip to content

Commit

Permalink
Revert "fix: remove action container space in mobile (#135)"
Browse files Browse the repository at this point in the history
This reverts commit 5f4e9ef.
  • Loading branch information
LucasXu0 committed May 29, 2023
1 parent 30ce149 commit b7728f2
Showing 1 changed file with 8 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,14 @@ class BlockComponentActionContainer extends StatelessWidget {

@override
Widget build(BuildContext context) {
return showActions
? Container(
alignment: Alignment.centerRight,
width: 50,
height:
25, // TODO: magic number, change it to the height of the block
color: Colors
.transparent, // have to set the color to transparent to make the MouseRegion work
child: actionBuilder(context),
)
: const SizedBox.shrink();
return Container(
alignment: Alignment.centerRight,
width: 50,
height: 25, // TODO: magic number, change it to the height of the block
color: Colors
.transparent, // have to set the color to transparent to make the MouseRegion work
child: !showActions ? const SizedBox.shrink() : actionBuilder(context),
);
}
}

Expand Down

0 comments on commit b7728f2

Please sign in to comment.