Skip to content

Commit

Permalink
Add content-visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
sawyerh committed Nov 25, 2024
1 parent 81ca428 commit 9d8584d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const Page = async () => {
</h1>
<ul className="grid-cols-volumes grid gap-8">
{volumes.map((volume: Volume, index) => (
<li key={volume.id} className="pb-4">
<li key={volume.id} className="pb-4 content-auto">
<CoverLink priority={index < 10} volume={volume} />
</li>
))}
Expand Down
6 changes: 6 additions & 0 deletions web/src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,9 @@ mark,
background: #000;
color: #fff;
}

@layer utilities {
.content-auto {
content-visibility: auto;
}
}

0 comments on commit 9d8584d

Please sign in to comment.