fix(ui): reserve the pointer cursor for the update chip

Extension cards no longer show a pointer cursor on hover; the tappable
update status chip shows it instead, on cards and detail headers alike.
This commit is contained in:
Levi committed 2026-09-19 21:18:57 +08:00
1 parent 2e5f8948be
commit 1b4956b0ec
2 files changed
+20 -20

No files matched your search

@@ -1123,20 +1123,17 @@ class _ExtensionCard extends ConsumerWidget {
], ],
), ),
); );
return MouseRegion( return GestureDetector(
cursor: SystemMouseCursors.click, key: ValueKey('open-extension-details-${item.id}'),
child: GestureDetector( behavior: HitTestBehavior.opaque,
key: ValueKey('open-extension-details-${item.id}'), onTap: () {
behavior: HitTestBehavior.opaque, if (MediaQuery.sizeOf(context).width < Breakpoints.mobile) {
onTap: () { context.push('/extensions/${Uri.encodeComponent(item.id)}', extra: item);
if (MediaQuery.sizeOf(context).width < Breakpoints.mobile) { return;
context.push('/extensions/${Uri.encodeComponent(item.id)}', extra: item); }
return; onOpenDetails(item);
} },
onOpenDetails(item); child: card,
},
child: card,
),
); );
} }
} }
@@ -35,12 +35,15 @@ class ExtensionUpdateStatus extends StatelessWidget {
], ],
); );
if (onTap == null) return content; if (onTap == null) return content;
return GestureDetector( return MouseRegion(
behavior: HitTestBehavior.opaque, cursor: SystemMouseCursors.click,
onTap: onTap, child: GestureDetector(
child: Padding( behavior: HitTestBehavior.opaque,
padding: const EdgeInsets.symmetric(horizontal: 4, vertical: 6), onTap: onTap,
child: content, child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 4, vertical: 6),
child: content,
),
), ),
); );
} }