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