Browse Source

Merge branch 'main' into #102

pull/131/head
みてるぞ 2 weeks ago
parent
commit
d68032cb73
2 changed files with 3 additions and 5 deletions
  1. +3
    -4
      frontend/src/components/PostList.tsx
  2. +0
    -1
      frontend/src/components/TopNav.tsx

+ 3
- 4
frontend/src/components/PostList.tsx View File

@@ -12,15 +12,14 @@ export default (({ posts, onClick }: Props) => (
<div className="flex flex-wrap gap-6 p-4">
{posts.map ((post, i) => (
<Link to={`/posts/${ post.id }`}
key={i}
key={post.id}
className="w-40 h-40 overflow-hidden rounded-lg shadow-md hover:shadow-lg"
onClick={onClick}>
<img src={post.thumbnail || post.thumbnailBase || undefined}
alt={post.title || post.url}
title={post.title || post.url || undefined}
loading="eager"
fetchPriority="high"
loading={i < 12 ? 'eager' : 'lazy'}
decoding="async"
className="object-none w-full h-full" />
className="object-cover w-full h-full"/>
</Link>))}
</div>)) satisfies FC<Props>

+ 0
- 1
frontend/src/components/TopNav.tsx View File

@@ -36,7 +36,6 @@ export default (({ user }: Props) => {
{ name: '別名タグ', to: '/tags/aliases', visible: false },
{ name: '上位タグ', to: '/tags/implications', visible: false },
{ name: 'ニコニコ連携', to: '/tags/nico' },
{ name: 'タグのつけ方', to: '/wiki/ヘルプ:タグのつけ方' },
{ name: 'ヘルプ', to: '/wiki/ヘルプ:タグ' }] },
{ name: 'Wiki', to: '/wiki/ヘルプ:ホーム', base: '/wiki', subMenu: [
{ name: '検索', to: '/wiki' },


Loading…
Cancel
Save