Refine spacing

This commit is contained in:
Sam Becker 2024-09-01 00:01:17 -05:00
parent ece618df04
commit deca3acacb
4 changed files with 20 additions and 10 deletions

View File

@ -85,7 +85,7 @@ export default function PhotoDetailPage({
return ( return (
<div> <div>
<SiteGrid <SiteGrid
className="mt-2 mb-6 sm:mb-8" className="mt-1.5 mb-6"
contentMain={customHeader ?? <PhotoHeader contentMain={customHeader ?? <PhotoHeader
selectedPhoto={photo} selectedPhoto={photo}
photos={photos} photos={photos}

View File

@ -38,7 +38,7 @@ export default function PhotoGridContainer({
return ( return (
<SiteGrid <SiteGrid
contentMain={<div className={clsx( contentMain={<div className={clsx(
header && 'space-y-8 mt-2', header && 'space-y-8 mt-1.5',
)}> )}>
{header && {header &&
<AnimateItems <AnimateItems

View File

@ -167,7 +167,11 @@ export default function PhotoLarge({
</div> </div>
<div className="space-y-baseline"> <div className="space-y-baseline">
{photo.caption && {photo.caption &&
<div className="uppercase"> <div className={clsx(
'uppercase',
// Prevent collision with admin button
isUserSignedIn && 'md:pr-7',
)}>
{photo.caption} {photo.caption}
</div>} </div>}
{(showCameraContent || showTagsContent) && {(showCameraContent || showTagsContent) &&
@ -233,7 +237,7 @@ export default function PhotoLarge({
photo={photo} photo={photo}
className={clsx( className={clsx(
'text-medium', 'text-medium',
// Prevent date collision with admin button // Prevent collision with admin button
!hasNonDateContent && isUserSignedIn && 'md:pr-7', !hasNonDateContent && isUserSignedIn && 'md:pr-7',
)} )}
/> />

View File

@ -101,10 +101,10 @@ export default function PhotoPrevNext({
'flex items-center', 'flex items-center',
className, className,
)}> )}>
<div className="flex items-center gap-2"> <div className="flex items-center gap-2 select-none">
<PhotoLink <PhotoLink
photo={previousPhoto} photo={previousPhoto}
className="select-none" className="select-none h-[1rem]"
nextPhotoAnimation={ANIMATION_RIGHT} nextPhotoAnimation={ANIMATION_RIGHT}
tag={tag} tag={tag}
camera={camera} camera={camera}
@ -113,13 +113,17 @@ export default function PhotoPrevNext({
scroll={false} scroll={false}
prefetch prefetch
> >
<FiChevronLeft className="sm:hidden text-[1.25rem]" /> <FiChevronLeft
className="sm:hidden text-[1.25rem] translate-y-[-1.5px]"
/>
<span className="hidden sm:inline-block">PREV</span> <span className="hidden sm:inline-block">PREV</span>
</PhotoLink> </PhotoLink>
<span className="text-extra-extra-dim">/</span> <span className="text-extra-extra-dim">
/
</span>
<PhotoLink <PhotoLink
photo={nextPhoto} photo={nextPhoto}
className="select-none" className="select-none h-[1rem]"
nextPhotoAnimation={ANIMATION_LEFT} nextPhotoAnimation={ANIMATION_LEFT}
tag={tag} tag={tag}
camera={camera} camera={camera}
@ -128,7 +132,9 @@ export default function PhotoPrevNext({
scroll={false} scroll={false}
prefetch prefetch
> >
<FiChevronRight className="sm:hidden text-[1.25rem]" /> <FiChevronRight
className="sm:hidden text-[1.25rem] translate-y-[-1.5px]"
/>
<span className="hidden sm:inline-block">NEXT</span> <span className="hidden sm:inline-block">NEXT</span>
</PhotoLink> </PhotoLink>
</div> </div>