This commit is contained in:
2026-04-08 22:23:23 +09:00
parent 8b92ba2b2e
commit 166bdaab50
4 changed files with 9 additions and 5 deletions
+1 -2
View File
@@ -8,8 +8,7 @@ type Props = {
export default (({ children, className }: Props) => ( export default (({ children, className }: Props) => (
<main className={cn ('flex-1 overflow-y-auto p-4', <main className={cn ('flex-1 overflow-y-auto p-4 md:h-[calc(100dvh-88px)]',
'md:h-[calc(100dvh-88px)] md:overflow-y-auto',
className)}> className)}>
{children} {children}
</main>)) satisfies FC<Props> </main>)) satisfies FC<Props>
@@ -6,7 +6,8 @@ import type { FC } from 'react'
export default (() => ( export default (() => (
<div className="md:flex md:flex-1 md:h-[calc(100dvh-88px)]"> <div className="md:flex md:flex-1 overflow-y-auto md:overflow-y-hidden
md:h-[calc(100dvh-88px)]">
<MaterialSidebar/> <MaterialSidebar/>
<Outlet/> <Outlet/>
</div>)) satisfies FC </div>)) satisfies FC
+2 -1
View File
@@ -93,7 +93,8 @@ export default (({ user }: Props) => {
: 'bg-gray-500 hover:bg-gray-600') : 'bg-gray-500 hover:bg-gray-600')
return ( return (
<div className="md:flex md:flex-1 md:h-[calc(100dvh-88px)]"> <div className="md:flex md:flex-1 overflow-y-auto md:overflow-y-hidden
md:h-[calc(100dvh-88px)]">
<Helmet> <Helmet>
{(post?.thumbnail || post?.thumbnailBase) && ( {(post?.thumbnail || post?.thumbnailBase) && (
<meta name="thumbnail" content={post.thumbnail || post.thumbnailBase}/>)} <meta name="thumbnail" content={post.thumbnail || post.thumbnailBase}/>)}
+4 -1
View File
@@ -69,7 +69,10 @@ export default (() => {
}, [location.search]) }, [location.search])
return ( return (
<div className="md:flex md:flex-1 md:h-[calc(100dvh-88px)]" ref={containerRef}> <div
className="md:flex md:flex-1 overflow-y-auto md:overflow-y-hidden
md:h-[calc(100dvh-88px)]"
ref={containerRef}>
<Helmet> <Helmet>
<title> <title>
{tags.length {tags.length