Skip to content

Commit 5280700

Browse files
committed
minor home card buttons changes
1 parent 1c57494 commit 5280700

3 files changed

Lines changed: 11 additions & 4 deletions

File tree

gui/lib/main.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ class MyApp extends ConsumerWidget {
9393
darkTheme: FluentThemeData(
9494
brightness: Brightness.dark,
9595
accentColor: getSystemAccentColor(accent),
96+
9697
navigationPaneTheme: NavigationPaneThemeData(
9798
backgroundColor: ref
9899
.watch(appSettingsNotifierProvider.notifier)

gui/lib/screens/home_page.dart

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,13 @@ class _Home extends StatelessWidget {
278278
direction: Axis.horizontal,
279279
spacing: 5,
280280
children:
281-
_homeCardButtons.map((e) => Expanded(child: e)).toList(),
281+
_homeCardButtons
282+
.map(
283+
(e) => Expanded(
284+
child: LimitedBox(maxHeight: 90, child: e),
285+
),
286+
)
287+
.toList(),
282288
),
283289
),
284290
),
@@ -287,7 +293,7 @@ class _Home extends StatelessWidget {
287293
padding: kScaffoldPagePadding,
288294
children: [
289295
const _HomePageContent(),
290-
const SizedBox(height: 10),
296+
const SizedBox(height: 5),
291297
Wrap(
292298
runSpacing: 5,
293299
children: _homeCardButtons.map((e) => e).toList(),

gui/lib/widgets/card_highlight.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ class CardHighlight extends StatelessWidget {
242242
Expanded(
243243
child: InfoLabel(
244244
label: label!,
245-
labelStyle: const TextStyle(overflow: TextOverflow.clip),
245+
labelStyle: const TextStyle(overflow: TextOverflow.fade),
246246
child:
247247
description != null
248248
? Text(
@@ -251,7 +251,7 @@ class CardHighlight extends StatelessWidget {
251251
context.theme.brightness.isDark
252252
? _cardDescStyleForDark
253253
: _cardDescStyleForLight,
254-
overflow: TextOverflow.clip,
254+
overflow: TextOverflow.ellipsis,
255255
)
256256
: const SizedBox(),
257257
),

0 commit comments

Comments
 (0)