Accept titles for uploads, fix duplicate full images

This commit is contained in:
Sam Becker 2025-07-06 11:20:57 -05:00
parent 70f6f48044
commit e50ecbf798
3 changed files with 8 additions and 2 deletions

View File

@ -113,6 +113,7 @@ export default function AdminUploadsTableRow({
placeholder="Title (optional)"
tabIndex={tabIndex}
readOnly={isRowLoading}
capitalize
hideLabel
/>
<div className="flex items-center gap-2">
@ -129,6 +130,7 @@ export default function AdminUploadsTableRow({
: <>
<AddUploadButton
url={url}
title={draftTitle}
onAddStart={() => updateStatus({
status: 'adding',
statusMessage: 'Adding ...',

View File

@ -22,10 +22,11 @@ export default function PhotoFullPage({
<PhotosLarge {...{ photos }} />
{photosCount > photos.length &&
<PhotosLargeInfinite
sortBy={sortBy}
sortWithPriority={sortWithPriority}
initialOffset={photos.length}
itemsPerPage={INFINITE_SCROLL_FULL_MULTIPLE}
sortBy={sortBy}
sortWithPriority={sortWithPriority}
excludeFromFeeds
/>}
</div>
);

View File

@ -9,11 +9,13 @@ export default function PhotosLargeInfinite({
initialOffset,
itemsPerPage,
sortBy,
excludeFromFeeds,
}: {
initialOffset: number
itemsPerPage: number
sortBy: SortBy
sortWithPriority: boolean
excludeFromFeeds?: boolean
}) {
return (
<InfinitePhotoScroll
@ -21,6 +23,7 @@ export default function PhotosLargeInfinite({
initialOffset={initialOffset}
itemsPerPage={itemsPerPage}
sortBy={sortBy}
excludeFromFeeds={excludeFromFeeds}
wrapMoreButtonInGrid
>
{({ photos, onLastPhotoVisible, revalidatePhoto }) =>