refactor/google-analytics #14
@@ -21,19 +21,18 @@ export function Breadcrumb({ items }: BreadcrumbProps) {
|
||||
>
|
||||
<StaticLink
|
||||
href="/"
|
||||
className="hover:text-[#C41E3A] transition-colors align-middle"
|
||||
className="hover:text-[#C41E3A] transition-colors"
|
||||
aria-label="返回首页"
|
||||
style={{ display: 'inline-flex', verticalAlign: 'middle' }}
|
||||
style={{ display: 'inline-flex', alignItems: 'center', justifyContent: 'center' }}
|
||||
>
|
||||
<Home className="w-3.5 h-3.5" style={{ display: 'block', verticalAlign: 'middle' }} />
|
||||
<Home className="w-3.5 h-3.5" style={{ display: 'block' }} />
|
||||
</StaticLink>
|
||||
{items.map((item, index) => (
|
||||
<span key={index} style={{ display: 'inline-flex', verticalAlign: 'middle', alignItems: 'center' }}>
|
||||
<ChevronRight className="w-3 h-3 text-[#CCCCCC] shrink-0 mx-0.5" />
|
||||
<span key={index} style={{ display: 'inline-flex', alignItems: 'center' }}>
|
||||
<ChevronRight className="w-3 h-3 text-[#CCCCCC] shrink-0 mx-0.5" style={{ display: 'block' }} />
|
||||
<StaticLink
|
||||
href={item.href}
|
||||
className="hover:text-[#C41E3A] transition-colors"
|
||||
style={{ verticalAlign: 'middle' }}
|
||||
>
|
||||
{item.label}
|
||||
</StaticLink>
|
||||
|
||||
Reference in New Issue
Block a user