Skip to content

Commit

Permalink
feat(ui): transparent status bar
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Dec 30, 2022
1 parent b64d1ad commit 4da2fd0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 4 additions & 3 deletions components/main/MainContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ defineProps<{
</script>

<template>
<div relative>
<div>
<div
sticky top-0 z10
border="b base" bg="[rgba(var(--c-bg-base-rgb),0.7)]" backdrop-blur
sticky top-0 z10 backdrop-blur
pt="[env(safe-area-inset-top,0)]"
border="b base" bg="[rgba(var(--c-bg-base-rgb),0.7)]"
>
<div flex justify-between px5 py4>
<div flex gap-3 items-center overflow-hidden>
Expand Down
3 changes: 3 additions & 0 deletions composables/setups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,8 @@ export function setupPageHeader() {
},
titleTemplate: title => `${title ? `${title} | ` : ''}${APP_NAME}${isDev ? ' (dev)' : isPreview ? ' (preview)' : ''}`,
link,
meta: [
{ name: 'apple-mobile-web-app-status-bar-style', content: 'black-translucent' },
],
})
}

0 comments on commit 4da2fd0

Please sign in to comment.