fix(header): add cursor pointer to link items for better UX

This commit is contained in:
2026-02-26 01:49:18 +08:00
parent 8aad3bcb9b
commit bdac089a85

View File

@@ -55,7 +55,7 @@ export const BaseHeader = (props: { main?: React.ComponentType | null }) => {
{
store.links.map(link => (
<div key={link.key || link.title}
className="flex items-center justify-center gap-1 p-2 text-sm text-gray-600 hover:text-gray-900 hover:bg-gray-100 rounded-lg transition-colors"
className="cursor-pointer flex items-center justify-center gap-1 p-2 text-sm text-gray-600 hover:text-gray-900 hover:bg-gray-100 rounded-lg transition-colors"
onClick={() => {
if (!link.href) return;
if (link.href.startsWith('http') || link.isRoot) {