mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-18 22:33:42 +00:00
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:
1 parent
2e5f8948be
commit
1b4956b0ec
2 files changed
+5
-5
No files matched your search
@@ -1123,9 +1123,7 @@ class _ExtensionCard extends ConsumerWidget {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
return MouseRegion(
|
return GestureDetector(
|
||||||
cursor: SystemMouseCursors.click,
|
|
||||||
child: GestureDetector(
|
|
||||||
key: ValueKey('open-extension-details-${item.id}'),
|
key: ValueKey('open-extension-details-${item.id}'),
|
||||||
behavior: HitTestBehavior.opaque,
|
behavior: HitTestBehavior.opaque,
|
||||||
onTap: () {
|
onTap: () {
|
||||||
@@ -1136,7 +1134,6 @@ class _ExtensionCard extends ConsumerWidget {
|
|||||||
onOpenDetails(item);
|
onOpenDetails(item);
|
||||||
},
|
},
|
||||||
child: card,
|
child: card,
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+4
-1
@@ -35,13 +35,16 @@ class ExtensionUpdateStatus extends StatelessWidget {
|
|||||||
],
|
],
|
||||||
);
|
);
|
||||||
if (onTap == null) return content;
|
if (onTap == null) return content;
|
||||||
return GestureDetector(
|
return MouseRegion(
|
||||||
|
cursor: SystemMouseCursors.click,
|
||||||
|
child: GestureDetector(
|
||||||
behavior: HitTestBehavior.opaque,
|
behavior: HitTestBehavior.opaque,
|
||||||
onTap: onTap,
|
onTap: onTap,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 4, vertical: 6),
|
padding: const EdgeInsets.symmetric(horizontal: 4, vertical: 6),
|
||||||
child: content,
|
child: content,
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user