🐛 Fix some bugs

This commit is contained in:
2026-01-15 00:09:41 +08:00
parent d0e4fde6c2
commit e1fc5311d2

View File

@@ -304,19 +304,22 @@ class ClockCard extends HookConsumerWidget {
), ),
], ],
), ),
Row( SingleChildScrollView(
spacing: 5, scrollDirection: Axis.horizontal,
children: [ child: Row(
notableDay.when( spacing: 5,
data: (day) => day == null children: [
? Text('unauthorized').tr() notableDay.when(
: _buildNotableDayText(context, day), data: (day) => day == null
error: (err, _) => ? Text('unauthorized').tr()
Text(err.toString()).fontSize(12), : _buildNotableDayText(context, day),
loading: () => error: (err, _) =>
const Text('loading').tr().fontSize(12), Text(err.toString()).fontSize(12),
), loading: () =>
], const Text('loading').tr().fontSize(12),
),
],
),
), ),
], ],
), ),
@@ -557,7 +560,7 @@ class FortuneCard extends HookConsumerWidget {
), ),
Text('—— ${fortune.source}').bold(), Text('—— ${fortune.source}').bold(),
], ],
).padding(horizontal: 16); ).padding(horizontal: 16, vertical: unlimited ? 12 : 0);
}, },
), ),
); );