Skip to content

Commit

Permalink
Fix cover aspect ratios
Browse files Browse the repository at this point in the history
  • Loading branch information
sawyerh committed Sep 29, 2024
1 parent bed42d9 commit b5c3064
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions web/src/components/Cover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const Cover = (props: {
priority={props.priority}
sizes="(min-width: 600px) 200px, 150px"
src={props.image}
style={{ objectPosition: "center bottom", objectFit: "contain" }}
/>
) : (
<figcaption className="aspect-cover block bg-stone-800 p-4 text-white">
Expand Down
2 changes: 1 addition & 1 deletion web/src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ h3 {
}

.cover-link:is(:hover, :focus) .cover-link__cover {
@apply -translate-y-4 rotate-2 scale-105 shadow-xl shadow-black/20;
@apply -translate-y-4 rotate-2 scale-105;
}

/*
Expand Down
4 changes: 2 additions & 2 deletions web/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ module.exports = {
serif: ["var(--font-noto-serif)", "serif"],
},
gridTemplateColumns: {
volumes: "repeat(auto-fill, minmax(150px, 1fr))",
volumes: "repeat(auto-fill, minmax(170px, 1fr))",
},
maxWidth: {
"cover-sm": "150px",
"cover-sm": "170px",
cover: "200px",
},
},
Expand Down

0 comments on commit b5c3064

Please sign in to comment.