Skip to content

Commit

Permalink
feat: static AppHeader on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
bdrtsky committed Jan 4, 2023
1 parent af37f2e commit c288a54
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion components/app/AppHeader.vue
Expand Up @@ -56,14 +56,18 @@ css({
header: {
backdropFilter: '{elements.backdrop.filter}',
position: 'sticky',
position: 'static',
top: 0,
zIndex: 10,
width: '100%',
borderBottom: '1px solid {elements.border.primary.default}',
backgroundColor: '{elements.backdrop.background}',
height: '{docus.header.height}',
'@lg': {
position: 'sticky',
},
'.container': {
display: 'grid',
height: '100%',
Expand Down
1 change: 1 addition & 0 deletions components/app/AppLayout.vue
Expand Up @@ -11,6 +11,7 @@ const titleTemplate = computed(() => {
return appTitleTemplate
})
// TODO: remove?
defineProps({
padded: {
type: Boolean,
Expand Down
3 changes: 2 additions & 1 deletion components/docs/DocsPageLayout.vue
Expand Up @@ -182,7 +182,7 @@ css({
},
'.toc': {
position: 'sticky',
top: '{docus.header.height}',
top: 0,
display: 'flex',
mx: 'calc(0px - {space.4})',
overflow: 'auto',
Expand All @@ -191,6 +191,7 @@ css({
mx: 'calc(0px - {space.6})',
},
'@lg': {
top: '{docus.header.height}',
mx: 0,
alignSelf: 'flex-start',
py: '{space.8}',
Expand Down

1 comment on commit c288a54

@vercel
Copy link

@vercel vercel bot commented on c288a54 Jan 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.