Skip to content

Commit

Permalink
link strategy icon back to overview ("home")
Browse files Browse the repository at this point in the history
  • Loading branch information
kenkunz committed Dec 2, 2024
1 parent 732ada5 commit adfa506
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/routes/strategies/[strategy]/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,15 @@
{:else}
<main class="strategy-layout ds-container ds-3" class:microsite={strategyMicrosite}>
<PageHeading description={strategy.short_description}>
<StrategyIcon slot="icon" {strategy} />
<svelte:fragment slot="icon">
{#if strategyMicrosite && !isOverviewPage}
<a href="/strategies/{strategy.id}" aria-label="Home">
<StrategyIcon {strategy} />
</a>
{:else}
<StrategyIcon {strategy} />
{/if}
</svelte:fragment>
<div class="title" slot="title">
{strategy.name}

Expand Down Expand Up @@ -107,6 +115,10 @@
@media (--viewport-xs) {
margin-top: 1rem;
}
a {
width: 100%;
}
}
:global(.badge) {
Expand Down

0 comments on commit adfa506

Please sign in to comment.