Small improvements to collectible pages

This commit is contained in:
DrMint 2024-06-08 21:21:18 +02:00
parent 2a34a0b60f
commit 3b4f2591a9
5 changed files with 61 additions and 47 deletions

View File

@ -53,10 +53,11 @@ const { reducedAsideWidth = false } = Astro.props;
@media (min-width: 1280.5px) { @media (min-width: 1280.5px) {
display: grid; display: grid;
justify-content: space-between; justify-content: space-between;
grid-template-columns: 35rem 35rem; gap: 5rem;
grid-template-columns: 1fr 35rem;
&.reduced-width { &.reduced-width {
grid-template-columns: 35rem 27rem; grid-template-columns: 1fr 27rem;
} }
align-items: start; align-items: start;

View File

@ -167,7 +167,8 @@ const { currentTheme } = Astro.locals;
p, p,
button, button,
body, body,
html { html,
hr {
padding: 0; padding: 0;
margin: 0; margin: 0;
overflow-wrap: anywhere; overflow-wrap: anywhere;

View File

@ -128,7 +128,7 @@ if (updatedBy) {
border: none; border: none;
border-top: 3px dotted var(--color-base-500); border-top: 3px dotted var(--color-base-500);
margin-block: 24px; margin-block: 24px;
width: 100%; width: min(100%, 35rem);
} }
#credits { #credits {

View File

@ -33,8 +33,20 @@ const { t } = await getI18n(Astro.locals.currentLocale);
& > #values { & > #values {
display: grid; display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: clamp(6px, 2vmin, 16px); gap: clamp(6px, 2vmin, 16px);
grid-template-columns: repeat(auto-fill, 270px);
@media (max-width: 600.5px) {
grid-template-columns: 1fr 1fr;
row-gap: 12px;
}
@media (max-width: 24rem) {
grid-template-columns: 1fr;
}
align-items: start;
} }
} }
</style> </style>

View File

@ -154,9 +154,10 @@ if (price) {
</Fragment> </Fragment>
<Fragment slot="header-aside"> <Fragment slot="header-aside">
<div id="images">
{ {
thumbnail && ( (thumbnail || gallery || scans) && (
<div id="images">
{thumbnail && (
<a <a
id="thumbnail" id="thumbnail"
href={getLocalizedUrl(`/images/${thumbnail.id}`)} href={getLocalizedUrl(`/images/${thumbnail.id}`)}
@ -169,11 +170,9 @@ if (price) {
height={thumbnail.height} height={thumbnail.height}
/> />
</a> </a>
) )}
}
{ {(gallery || scans) && (
(gallery || scans) && (
<div <div
id="gallery-scans" id="gallery-scans"
class:list={{ "when-no-print": true, "with-two": gallery && scans }}> class:list={{ "when-no-print": true, "with-two": gallery && scans }}>
@ -195,9 +194,10 @@ if (price) {
/> />
)} )}
</div> </div>
)}
</div>
) )
} }
</div>
</Fragment> </Fragment>
<Fragment slot="aside"> <Fragment slot="aside">