Skip to content

Commit fe83e64

Browse files
authored
Small fix to guide styling (#8605)
1 parent ca125b7 commit fe83e64

File tree

2 files changed

+17
-10
lines changed

2 files changed

+17
-10
lines changed

.changeset/five-bags-dress.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"website": minor
3+
---
4+
5+
feat:Small fix to guide styling

js/_website/src/routes/[[version]]/guides/[guide]/+page.svelte

+12-10
Original file line numberDiff line numberDiff line change
@@ -147,16 +147,18 @@
147147
href="..{guide.url}">{guide.pretty_name}</a
148148
>
149149

150-
<div
151-
class="navigation max-w-full bg-gradient-to-r from-orange-50 to-orange-100 p-2 mx-2 border-l-2 border-orange-500 mb-2"
152-
>
153-
{#each guide_slug as heading}
154-
<a
155-
class="subheading block thin-link -indent-2 ml-4 mr-2"
156-
href={heading.href}>{heading.text}</a
157-
>
158-
{/each}
159-
</div>
150+
{#if guide_slug.length > 0}
151+
<div
152+
class="navigation max-w-full bg-gradient-to-r from-orange-50 to-orange-100 p-2 mx-2 border-l-2 border-orange-500 mb-2"
153+
>
154+
{#each guide_slug as heading}
155+
<a
156+
class="subheading block thin-link -indent-2 ml-4 mr-2"
157+
href={heading.href}>{heading.text}</a
158+
>
159+
{/each}
160+
</div>
161+
{/if}
160162
{:else}
161163
<a
162164
class:hidden={!show_all &&

0 commit comments

Comments
 (0)