Compare commits

..

10 Commits

Author SHA1 Message Date
みてるぞ a95856a30d #99 2026-04-07 07:43:10 +09:00
みてるぞ 63d7e5708e #99 2026-04-07 01:00:16 +09:00
みてるぞ e38c3cffd6 #99 2026-04-07 00:54:28 +09:00
みてるぞ e916b4a113 #99 2026-04-07 00:53:30 +09:00
みてるぞ ff4b0eecf5 #99 2026-04-07 00:45:40 +09:00
みてるぞ c0d52077b9 #99 2026-04-06 08:41:43 +09:00
みてるぞ 64e7400ed0 #99 2026-04-05 21:00:13 +09:00
みてるぞ f576373c8f #99 2026-04-03 00:42:37 +09:00
みてるぞ 6ed7f81151 #99 2026-04-02 01:43:39 +09:00
みてるぞ c28326b941 #99 2026-03-29 21:27:59 +09:00
7 changed files with 20 additions and 26 deletions
+1 -1
View File
@@ -131,7 +131,7 @@ export default (() => {
<> <>
<RouteBlockerOverlay/> <RouteBlockerOverlay/>
<BrowserRouter> <BrowserRouter>
<div className="flex flex-col h-dvh w-full"> <div className="flex flex-col h-dvh w-screen">
<TopNav user={user}/> <TopNav user={user}/>
<RouteTransitionWrapper user={user} setUser={setUser}/> <RouteTransitionWrapper user={user} setUser={setUser}/>
</div> </div>
+11 -11
View File
@@ -79,12 +79,12 @@ export default (({ user }: Props) => {
{ name: '上位タグ', to: '/tags/implications', visible: false }, { name: '上位タグ', to: '/tags/implications', visible: false },
{ name: 'ニコニコ連携', to: '/tags/nico' }, { name: 'ニコニコ連携', to: '/tags/nico' },
{ name: 'ヘルプ', to: '/wiki/ヘルプ:タグ' }] }, { name: 'ヘルプ', to: '/wiki/ヘルプ:タグ' }] },
// { name: '素材', to: '/materials', subMenu: [ { name: '素材', to: '/materials', subMenu: [
// { name: '一覧', to: '/materials' }, { name: '一覧', to: '/materials' },
// { name: '検索', to: '/materials/search', visible: false }, // { name: '検索', to: '/materials/search' },
// { name: '追加', to: '/materials/new' }, { name: '追加', to: '/materials/new' },
// { name: '履歴', to: '/materials/changes', visible: false }, // { name: '履歴', to: '/materials/changes' },
// { name: 'ヘルプ', to: '/wiki/ヘルプ:素材集' }] }, { name: 'ヘルプ', to: 'wiki/ヘルプ:素材集' }] },
{ name: '上映会', to: '/theatres/1', base: '/theatres', subMenu: [ { name: '上映会', to: '/theatres/1', base: '/theatres', subMenu: [
{ name: <>&thinsp;1&thinsp;</>, to: '/theatres/1' }, { name: <>&thinsp;1&thinsp;</>, to: '/theatres/1' },
{ name: 'CyTube', to: '//cytube.mm428.net/r/deernijika' }, { name: 'CyTube', to: '//cytube.mm428.net/r/deernijika' },
@@ -145,9 +145,9 @@ export default (({ user }: Props) => {
return ( return (
<> <>
<nav className="px-3 flex justify-between items-center w-full <nav className="px-3 flex justify-between items-center w-full min-h-[48px]
bg-yellow-200 dark:bg-red-975 md:bg-yellow-50"> bg-yellow-200 dark:bg-red-975 md:bg-yellow-50">
<div className="flex items-center gap-2 h-12"> <div className="flex items-center gap-2 h-full">
<PrefetchLink <PrefetchLink
to="/posts" to="/posts"
className="mx-4 text-xl font-bold text-pink-600 hover:text-pink-400 className="mx-4 text-xl font-bold text-pink-600 hover:text-pink-400
@@ -158,13 +158,13 @@ export default (({ user }: Props) => {
</PrefetchLink> </PrefetchLink>
<div ref={navRef} className="relative hidden md:flex h-12 items-center"> <div ref={navRef} className="relative hidden md:flex h-full items-center">
<div aria-hidden <div aria-hidden
className={cn ('absolute inset-y-0 h-12', className={cn ('absolute top-1/2 -translate-y-1/2 h-full',
'bg-yellow-200 dark:bg-red-950', 'bg-yellow-200 dark:bg-red-950',
'transition-[transform,width] duration-200 ease-out')} 'transition-[transform,width] duration-200 ease-out')}
style={{ width: hl.width, style={{ width: hl.width,
transform: `translateX(${ hl.left }px)`, transform: `translate(${ hl.left }px, -50%)`,
opacity: hl.visible ? 1 : 0 }}/> opacity: hl.visible ? 1 : 0 }}/>
{menu.map ((item, i) => ( {menu.map ((item, i) => (
+2 -1
View File
@@ -8,7 +8,8 @@ type Props = {
export default (({ children, className }: Props) => ( export default (({ children, className }: Props) => (
<main className={cn ('flex-1 overflow-y-auto p-4 md:h-[calc(100dvh-88px)]', <main className={cn ('flex-1 overflow-y-auto p-4',
'md:h-[calc(100dvh-88px)] md:overflow-y-auto',
className)}> className)}>
{children} {children}
</main>)) satisfies FC<Props> </main>)) satisfies FC<Props>
+3 -5
View File
@@ -46,12 +46,10 @@ a
body body
{ {
margin: 0; margin: 0;
display: flex;
place-items: center;
min-width: 320px; min-width: 320px;
} min-height: 100vh;
#root
{
min-height: 100dvh;
} }
h1 h1
@@ -6,8 +6,7 @@ import type { FC } from 'react'
export default (() => ( export default (() => (
<div className="md:flex md:flex-1 overflow-y-auto md:overflow-y-hidden <div className="md:flex md:flex-1 md:h-[calc(100dvh-88px)]">
md:h-[calc(100dvh-88px)]">
<MaterialSidebar/> <MaterialSidebar/>
<Outlet/> <Outlet/>
</div>)) satisfies FC </div>)) satisfies FC
+1 -2
View File
@@ -93,8 +93,7 @@ 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 overflow-y-auto md:overflow-y-hidden <div className="md:flex md:flex-1 md:h-[calc(100dvh-88px)]">
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}/>)}
+1 -4
View File
@@ -69,10 +69,7 @@ export default (() => {
}, [location.search]) }, [location.search])
return ( return (
<div <div className="md:flex md:flex-1 md:h-[calc(100dvh-88px)]" ref={containerRef}>
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