Skip to content

Commit

Permalink
fix width
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-ding committed Aug 10, 2024
1 parent 8ecc939 commit e0ad712
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/lib/welcome_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class WelcomePage extends ConsumerWidget {
return switch (data) {
AsyncData(:final value) => SingleChildScrollView(
child: Wrap(
alignment: WrapAlignment.spaceEvenly,
spacing: isSmallScreen(context) ? 0 : 10,
runSpacing: isSmallScreen(context) ? 10 : 20,
children: value.isEmpty
Expand Down Expand Up @@ -57,7 +58,7 @@ class WelcomePage extends ConsumerWidget {

class MediaCard extends StatelessWidget {
final MediaDetail item;
static const double smallWidth = 120;
static const double smallWidth = 110;
static const double largeWidth = 140;

const MediaCard({super.key, required this.item});
Expand Down

0 comments on commit e0ad712

Please sign in to comment.