Show edited renders in thumbnails and paste to a filmstrip selection
The grid and filmstrip only ever showed the import thumbnail, so edits and virtual copies looked untouched. Edited tiles now render client-side with the same shader as the canvas, once each, from the small cached thumbnail. The filmstrip also gains Cmd/Shift multi-select so Paste, Copy and Reset can act on several photos from the toolbar or the right-click menu.
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
import { useEffect, useRef, useState } from 'react';
|
||||
import { COLOR_LABELS, isEdited, thumbTransform } from '../lib/edits';
|
||||
import { COLOR_LABELS, isEdited } from '../lib/edits';
|
||||
import { draggedPhotoIds, endDrag, PHOTO_DRAG, startPhotoDrag } from '../lib/drag';
|
||||
import type { ColorLabel, Flag, PhotoRecord } from '../types';
|
||||
import Stars, { ColorSwatches, FlagButtons } from './Stars';
|
||||
import EditedImage from './EditedImage';
|
||||
|
||||
interface Props {
|
||||
photos: PhotoRecord[];
|
||||
@@ -443,13 +444,7 @@ export default function LibraryGrid({
|
||||
}}
|
||||
>
|
||||
<div className="card-thumb">
|
||||
<img
|
||||
src={p.thumbUrl ?? p.thumb}
|
||||
alt={p.name}
|
||||
loading="lazy"
|
||||
draggable={false}
|
||||
style={{ transform: thumbTransform(p) }}
|
||||
/>
|
||||
<EditedImage photo={p} alt={p.name} />
|
||||
<div className="card-badges">
|
||||
{p.flag === 'pick' && <span className="badge pick">✓</span>}
|
||||
{p.flag === 'reject' && <span className="badge reject">✕</span>}
|
||||
|
||||
Reference in New Issue
Block a user