Skip to content

Commit c1b9c0e

Browse files
committed
Only apply sticky component header on tall viewports
1 parent ab81a45 commit c1b9c0e

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

packages/layerchart/src/routes/docs/+layout.svelte

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
</script>
5353

5454
<div
55-
class="md:sticky top-0 z-20 bg-neutral-200/90 backdrop-blur px-5 py-4 [mask-image:linear-gradient(to_bottom,rgba(0,0,0,1)calc(100%-4px),rgba(0,0,0,0))]"
55+
class="[@media(min-height:900px)]:sticky top-0 z-20 bg-neutral-200/90 backdrop-blur px-5 py-4 [mask-image:linear-gradient(to_bottom,rgba(0,0,0,1)calc(100%-4px),rgba(0,0,0,0))]"
5656
>
5757
{#if title}
5858
<div>
@@ -160,12 +160,12 @@
160160
item.type === 'components' || item.type === 'examples'
161161
? mdiCodeTags
162162
: item.type === 'stores'
163-
? mdiDatabaseOutline
164-
: item.type === 'actions'
165-
? mdiCodeBraces
166-
: item.type === 'github'
167-
? mdiGithub
168-
: mdiLink}
163+
? mdiDatabaseOutline
164+
: item.type === 'actions'
165+
? mdiCodeBraces
166+
: item.type === 'github'
167+
? mdiGithub
168+
: mdiLink}
169169
<ListItem
170170
title={item.name}
171171
{icon}

0 commit comments

Comments
 (0)