From 1ab04c0043451603b12d54413ded2760fe0fbcad Mon Sep 17 00:00:00 2001 From: Shawn Date: Mon, 14 Nov 2022 15:53:48 -0700 Subject: [PATCH] Polish editorial view --- .../widgets/_large_simple_quote.dart | 47 ++++++++++--------- lib/ui/screens/home_menu/home_menu.dart | 2 +- 2 files changed, 26 insertions(+), 23 deletions(-) diff --git a/lib/ui/screens/editorial/widgets/_large_simple_quote.dart b/lib/ui/screens/editorial/widgets/_large_simple_quote.dart index a977929c..33d3f13f 100644 --- a/lib/ui/screens/editorial/widgets/_large_simple_quote.dart +++ b/lib/ui/screens/editorial/widgets/_large_simple_quote.dart @@ -8,31 +8,34 @@ class _LargeSimpleQuote extends StatelessWidget { @override Widget build(BuildContext context) { return MergeSemantics( - child: Padding( + child: CenteredBox( + width: 300, padding: EdgeInsets.symmetric(horizontal: $styles.insets.lg, vertical: $styles.insets.xl), - child: Column(children: [ - FractionalTranslation( - translation: Offset(0, .5), - child: Text( - '“', - style: $styles.text.quote1.copyWith( - color: $styles.colors.accent1, - fontSize: 90 * $styles.scale, - height: .7, + child: Column( + children: [ + FractionalTranslation( + translation: Offset(0, .5), + child: Text( + '“', + style: $styles.text.quote1.copyWith( + color: $styles.colors.accent1, + fontSize: 90 * $styles.scale, + height: .7, + ), ), ), - ), - Text( - text, - style: $styles.text.quote2, - textAlign: TextAlign.center, - ), - Gap($styles.insets.md), - Text( - '- $author', - style: $styles.text.quote2Sub.copyWith(color: $styles.colors.accent1), - ), - ]), + Text( + text, + style: $styles.text.quote2, + textAlign: TextAlign.center, + ), + Gap($styles.insets.md), + Text( + '- $author', + style: $styles.text.quote2Sub.copyWith(color: $styles.colors.accent1), + ), + ], + ), ), ); } diff --git a/lib/ui/screens/home_menu/home_menu.dart b/lib/ui/screens/home_menu/home_menu.dart index 727ccb28..f607cfc4 100644 --- a/lib/ui/screens/home_menu/home_menu.dart +++ b/lib/ui/screens/home_menu/home_menu.dart @@ -40,7 +40,7 @@ class HomeMenu extends StatelessWidget { @override Widget build(BuildContext context) { - final double gridWidth = (context.heightPx / 2).clamp(200, 450); + final double gridWidth = (context.heightPx / 2).clamp(200, 350); return Stack( children: [ /// Backdrop / Underlay