Skip to content

Commit

Permalink
fix: link and icon position on header doc page (#8034)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackySoul authored and actions-user committed Dec 3, 2024
1 parent ceafdfe commit cc0a49e
Showing 1 changed file with 9 additions and 36 deletions.
45 changes: 9 additions & 36 deletions packages/vkui/src/components/Header/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,14 @@ const Example = () => {
<Group>
<Header
after={
<Link>
Показать все
{platform === 'vkcom' && <Icon12ChevronOutline />}
</Link>
<Link after={platform === 'vkcom' && <Icon12ChevronOutline />}>Показать все</Link>
}
>
Плейлисты
</Header>
<Header
after={
<Link>
Показать все
{platform === 'vkcom' && <Icon12ChevronOutline />}
</Link>
<Link after={platform === 'vkcom' && <Icon12ChevronOutline />}>Показать все</Link>
}
subtitle="SOHN — Conrad"
subtitleComponent="h3"
Expand All @@ -31,21 +25,15 @@ const Example = () => {
</Header>
<Header
after={
<Link>
Показать все
{platform === 'vkcom' && <Icon12ChevronOutline />}
</Link>
<Link after={platform === 'vkcom' && <Icon12ChevronOutline />}>Показать все</Link>
}
indicator="12"
>
Плейлисты
</Header>
<Header
after={
<Link>
Показать все
{platform === 'vkcom' && <Icon12ChevronOutline />}
</Link>
<Link after={platform === 'vkcom' && <Icon12ChevronOutline />}>Показать все</Link>
}
indicator={
<Counter size="s" mode="primary" appearance="accent-red">
Expand All @@ -60,21 +48,15 @@ const Example = () => {
<Header
size="s"
after={
<Link>
Показать все
{platform === 'vkcom' && <Icon12ChevronOutline />}
</Link>
<Link after={platform === 'vkcom' && <Icon12ChevronOutline />}>Показать все</Link>
}
>
Приглашения
</Header>
<Header
size="s"
after={
<Link>
Показать все
{platform === 'vkcom' && <Icon12ChevronOutline />}
</Link>
<Link after={platform === 'vkcom' && <Icon12ChevronOutline />}>Показать все</Link>
}
indicator="667"
>
Expand All @@ -83,10 +65,7 @@ const Example = () => {
<Header
size="s"
after={
<Link>
Показать все
{platform === 'vkcom' && <Icon12ChevronOutline />}
</Link>
<Link after={platform === 'vkcom' && <Icon12ChevronOutline />}>Показать все</Link>
}
indicator={
<Counter size="s" mode="primary" appearance="accent-red">
Expand Down Expand Up @@ -125,10 +104,7 @@ const Example = () => {
</Counter>
}
after={
<Link>
Показать все
{platform === 'vkcom' && <Icon12ChevronOutline />}
</Link>
<Link after={platform === 'vkcom' && <Icon12ChevronOutline />}>Показать все</Link>
}
>
Плейлисты
Expand All @@ -148,10 +124,7 @@ const Example = () => {
</Counter>
}
after={
<Link>
Показать все
{platform === 'vkcom' && <Icon12ChevronOutline />}
</Link>
<Link after={platform === 'vkcom' && <Icon12ChevronOutline />}>Показать все</Link>
}
>
Плейлисты
Expand Down

0 comments on commit cc0a49e

Please sign in to comment.