Skip to content

Commit ba639ee

Browse files
sidebars
1 parent 58a2c3f commit ba639ee

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/components/Inbox/index.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,8 +450,10 @@ export default function Inbox(props) {
450450
>
451451
<aside
452452
data-scheme="secondary"
453-
className={`w-full @2xl:w-64 bg-primary @2xl:h-full flex-shrink-0 ${
454-
websiteMode ? 'h-[calc(100vh-91px)] sticky top-[101px]' : '@2xl:border-r border-primary'
453+
className={`w-full @2xl:w-64 bg-primary flex-shrink-0 ${
454+
websiteMode
455+
? 'h-[calc(100vh-91px)] sticky top-[101px]'
456+
: '@2xl:border-r border-primary @2xl:h-full'
455457
}`}
456458
>
457459
<ScrollArea className="h-full">

src/templates/BlogPost.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ import { postsMenu as menu } from '../navs/posts'
3838
import MenuBar from 'components/RadixUI/MenuBar'
3939
import slugify from 'slugify'
4040
import { getVideoClasses } from '../constants'
41+
import { useApp } from '../context/App'
4142
const A = (props) => <Link {...props} state={{ newWindow: true }} />
4243

4344
export const Intro = ({
@@ -233,8 +234,12 @@ export const getSortOption = (root?: string) =>
233234
sortOptions[['blog', 'changelog', 'newsletter', 'spotlight'].includes(root) ? 1 : 0]
234235

235236
const Filters = ({ tag, setTag, sort, setSort, activeMenu }) => {
237+
const { websiteMode } = useApp()
236238
return activeMenu?.children?.length > 0 ? (
237-
<div className="mb-1 flex items-center justify-between sticky top-0 bg-primary">
239+
<div
240+
data-scheme={websiteMode ? 'primary' : 'secondary'}
241+
className="mb-1 flex items-center justify-between sticky top-0 bg-primary z-10"
242+
>
238243
<h5 className="m-0 text-sm font-semibold">{activeMenu?.name}</h5>
239244
<div className="flex items-center">
240245
<MenuBar

0 commit comments

Comments
 (0)