Skip to content

Commit 3169e7f

Browse files
committed
🚸 微调
1 parent b88bad4 commit 3169e7f

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

lib/widgets/bangumi/calendar/calendar_card.dart

+7-4
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,12 @@ class _CalendarCardState extends ConsumerState<CalendarCard>
158158
FluentIcons.info,
159159
color: FluentTheme.of(context).accentColor.light,
160160
),
161-
onPressed: () => ref
162-
.read(navStoreProvider)
163-
.addNavItemB(type: '动画', subject: data.id),
161+
onPressed: () async {
162+
var title = data.nameCn == '' ? data.name : data.nameCn;
163+
ref
164+
.read(navStoreProvider)
165+
.addNavItemB(type: '动画', subject: data.id, paneTitle: title);
166+
},
164167
),
165168
),
166169
],
@@ -178,7 +181,7 @@ class _CalendarCardState extends ConsumerState<CalendarCard>
178181
rating: score,
179182
iconSize: 20.sp,
180183
starSpacing: 1.sp,
181-
unratedIconColor: FluentTheme.of(context).accentColor.withOpacity(0.5),
184+
unratedIconColor: FluentTheme.of(context).accentColor.withAlpha(50)
182185
));
183186
rateWidget.add(SizedBox(height: 5.h));
184187
rateWidget.add(Text(

lib/widgets/bangumi/subject_detail/bsd_bmf.dart

+8-5
Original file line numberDiff line numberDiff line change
@@ -303,11 +303,14 @@ class _BsdBmfWidgetState extends State<BsdBmfWidget>
303303
if (!widget.isConfig) title = 'BMF Config - $title';
304304
return Expander(
305305
leading: BsdBmfLeading(widget.isConfig, bmf),
306-
header: Text(
307-
title,
308-
style: TextStyle(fontSize: 20),
309-
maxLines: 1,
310-
overflow: TextOverflow.ellipsis,
306+
header: Tooltip(
307+
message: title,
308+
child: Text(
309+
title,
310+
style: TextStyle(fontSize: 20),
311+
maxLines: 1,
312+
overflow: TextOverflow.ellipsis,
313+
),
311314
),
312315
content: Column(
313316
crossAxisAlignment: CrossAxisAlignment.start,

0 commit comments

Comments
 (0)