This commit is contained in:
2025-07-19 23:26:18 +09:00
parent 196d673324
commit 1a965146dc
6 changed files with 43 additions and 36 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ export default ({ posts }: Props) => {
</li>))) : [])}
</ul>
<SectionTitle></SectionTitle>
{posts.length && (
{posts.length > 0 && (
<a href="#"
onClick={ev => {
ev.preventDefault ()
+1 -2
View File
@@ -166,8 +166,7 @@ export default ({ user }: Props) => {
return (
<div className={className}>
<Link to="/posts" className={subClass}></Link>
{['admin', 'member'].some (r => user?.role === r) && (
<Link to="/posts/new" className={subClass}>稿</Link>)}
<Link to="/posts/new" className={subClass}>稿</Link>
<Link to="/wiki/ヘルプ:広場" className={subClass}></Link>
</div>)
case Menu.Tag:
@@ -4,6 +4,6 @@ type Props = { children: React.ReactNode }
export default ({ children }: Props) => (
<div className="w-64 bg-gray-100 p-4 border-r border-gray-200 h-full">
<div className="p-4 w-full md:w-64 md:h-full">
{children}
</div>)