Edge-Drop is a clipboard shelf on the edge of your screen. Hover to open it. Drag files and images into any app, click to copy text and links. Free and open-source for Windows.
TypeScript clipboardclipboard-managerdesktop-appdrag-and-dropelectronopen-sourceproductivityproductivity-toolwindows
feat(stack): redesign expanded image stack with symmetric bezels and seamless 1-click switching
Deepender2594daa75bae62
diff --git a/src/components/ClipboardItem.tsx b/src/components/ClipboardItem.tsxindex dacee71..1164ca3 100644--- a/src/components/ClipboardItem.tsx+++ b/src/components/ClipboardItem.tsx@@ -14,7 +14,7 @@* clamped preview; file items list names or bundle badge. Motion is handled by* the parent list (layout/AnimatePresence), so this component stays presentational.*/-import { memo, useState, useCallback, useEffect, useRef, forwardRef, type ReactNode } from 'react'+import { memo, useState, useCallback, useEffect, useLayoutEffect, useRef, forwardRef, type ReactNode } from 'react'import { motion } from 'framer-motion'import type { ClipboardItemDto } from '../../shared/types'import { MAX_STACK } from '../../shared/types'@@ -25,7 +25,7 @@ import { itemRenderKey } from '../lib/itemSignature'import { basename, formatBytes, previewText, relativeTime, formatImageDisplayName } from '../lib/format'import { getFileKind } from '../lib/fileType'import { playButtonClickSound, playToggleSound, playDeleteSound, playCardExpandSound } from '../lib/soundEffects'-import { CopyIcon, FileKindIcon, FileStackPhoto, PinIcon, PinFillIcon, TrashIcon, MinusIcon, ChevronUpIcon, ChevronLeftIcon, ExpandIcon, ContractIcon, ExternalLinkIcon } from './icons'+import { CopyIcon, FileKindIcon, FileStackPhoto, PinIcon, PinFillIcon, TrashIcon, MinusIcon, ChevronUpIcon, ChevronLeftIcon, ExpandIcon, ContractIcon, ExternalLinkIcon, ImageIcon } from './icons'import { LinkPreviewCard } from './LinkPreviewCard'import '../styles/item.css'import { tryPaste } from '../lib/tryPaste'@@ -81,6 +81,18 @@ const ClipboardItemBase = forwardRef<HTMLDivElement, Props>(({ item }, ref) => {const isPreviewing = useStore((s) => s.previewItemId) === item.idconst isBundle = (item.data.kind === 'files' && item.data.paths.length > 1) || item.data.kind === 'image-collection'+ const isSingleImage = item.data.kind === 'image' || (+ item.data.kind === 'files' &&+ item.data.paths.length === 1 &&+ !item.data.entries?.[0]?.isDirectory &&+ (item.data.entries?.[0]?.isImage || getFileKind(item.data.paths[0]).kind === 'image')+ )+ const isImageStack = item.data.kind === 'image-collection' || (+ item.data.kind === 'files' &&+ item.data.paths.length > 1 &&+ item.data.paths.every((p, i) => !item.data.entries?.[i]?.isDirectory && (item.data.entries?.[i]?.isImage || getFileKind(p).kind === 'image'))+ )+ const isImageFolderCard = isSingleImage || isImageStackconst bundleCount = item.data.kind === 'image-collection'? item.data.images.length@@ -90,21 +102,21 @@ const ClipboardItemBase = forwardRef<HTMLDivElement, Props>(({ item }, ref) => {const screenW = typeof window !== 'undefined' ? window.innerWidth : 1140const expandedWidth = expanded && isHorizontal- ? Math.min(screenW - 80, Math.max(300, 36 + bundleCount * 112))+ ? (isImageFolderCard+ ? Math.min(screenW - 80, Math.max(210, 14 + bundleCount * 121))+ : Math.min(screenW - 80, Math.max(300, 48 + bundleCount * 124))): undefined+ const cardRef = useRef<HTMLDivElement | null>(null)+useEffect(() => {if (!isBundle && expanded) setExpandedFlag(false)}, [isBundle, expanded, setExpandedFlag])// ── Intuitive collapse affordances ──────────────────────────────────────- // While THIS stack is the open one, a pointerdown anywhere OUTSIDE this- // card (other cards, empty shelf space) collapses it — standard disclosure- // behavior. Everything INSIDE this card is exempt, including its empty- // padding/margins: a partial-boundary exemption caused the infamous- // collapse→re-expand bounce, because the follow-up click event dispatched- // against freshly-collapsed state and the body contract re-opened it.- // The preview flyout is exempt too, so interacting there never surprises.+ // While THIS stack is the open one, a pointerdown anywhere OUTSIDE all cards+ // (e.g. empty shelf space) collapses it. Clicks on any card (.item) or inside+ // this card/flyout are exempt so the clicked card can expand/paste immediately on 1 click!useEffect(() => {if (!expanded) return@@ -113,6 +125,7 @@ const ClipboardItemBase = forwardRef<HTMLDivElement, Props>(({ item }, ref) => {if (!target || typeof target.closest !== 'function') returnif (target.closest('[data-expanded-stack]')) returnif (target.closest('[data-preview-flyout], .preview-flyout')) return+ if (target.closest('.item')) returnsetExpandedFlag(false)}@@ -122,6 +135,42 @@ const ClipboardItemBase = forwardRef<HTMLDivElement, Props>(({ item }, ref) => {}}, [expanded, setExpandedFlag])+ // Smooth scroll stabilization when a stack expands+ useLayoutEffect(() => {+ if (!expanded) return+ const el = cardRef.current+ if (!el) return+ const container = el.closest('.list')+ if (!container) return++ const rafId = requestAnimationFrame(() => {+ const containerRect = container.getBoundingClientRect()+ const elRect = el.getBoundingClientRect()++ if (isHorizontal) {+ const leftDiff = elRect.left - containerRect.left+ const rightDiff = elRect.right - containerRect.right++ if (leftDiff < 0) {+ container.scrollBy({ left: leftDiff - 16, behavior: 'smooth' })+ } else if (rightDiff > 0) {+ container.scrollBy({ left: rightDiff + 16, behavior: 'smooth' })+ }+ } else {+ const topDiff = elRect.top - containerRect.top+ const bottomDiff = elRect.bottom - containerRect.bottom++ if (topDiff < 0) {+ container.scrollBy({ top: topDiff - 16, behavior: 'smooth' })+ } else if (bottomDiff > 0) {+ container.scrollBy({ top: bottomDiff + 16, behavior: 'smooth' })+ }+ }+ })++ return () => cancelAnimationFrame(rafId)+ }, [expanded, isHorizontal])+const onCopy = useCallback((e: React.MouseEvent) => {e.stopPropagation()playButtonClickSound()@@ -232,16 +281,23 @@ const ClipboardItemBase = forwardRef<HTMLDivElement, Props>(({ item }, ref) => {if (isBundle && !expanded) {onExpand(e)} else if (!isBundle) {+ if (useStore.getState().expandedStackId) {+ useStore.getState().setExpandedStackId(null)+ }onPaste(e)}}, [isPreviewing, isBundle, expanded, onExpand, onPaste, item.id])return (<motion.div- ref={ref}+ ref={(node: HTMLDivElement | null) => {+ cardRef.current = node+ if (typeof ref === 'function') ref(node)+ else if (ref) (ref as any).current = node+ }}initial={false}animate={{ opacity: 1 }}- className={`item${item.pinned ? ' pinned' : ''}${isBundle ? ' bundle' : ''}${expanded ? ' is-expanded' : ''}${colorInfo ? ` is-color-card ${colorInfo.isLight ? 'is-light-color' : 'is-dark-color'}` : ''}`}+ className={`item${item.pinned ? ' pinned' : ''}${isBundle ? ' bundle' : ''}${expanded ? ' is-expanded' : ''}${colorInfo ? ` is-color-card ${colorInfo.isLight ? 'is-light-color' : 'is-dark-color'}` : ''}${isImageFolderCard ? ' is-image-folder-card' : ''}`}data-expanded-stack={expanded ? 'true' : undefined}style={{...(expandedWidth ? { width: expandedWidth, minWidth: expandedWidth, maxWidth: expandedWidth } : {}),@@ -307,41 +363,54 @@ const ClipboardItemBase = forwardRef<HTMLDivElement, Props>(({ item }, ref) => {}}onClick={handleCardClick}>- <div className="body">- <div className="item-content">- {isBundle ? (- <BundleFluidPreview- item={item}- expanded={expanded}- isHorizontal={isHorizontal}- onDragStart={handleDragStart}- onCopy={onCopy}- onRemove={() => remove(item.id)}- onCollapse={onCollapse}- />- ) : (- <Preview item={item} />+ {isImageFolderCard ? (+ <ImageFolderCard+ item={item}+ copied={copied}+ expanded={expanded}+ isHorizontal={isHorizontal}+ onDragStart={handleDragStart}+ onCopy={onCopy}+ onRemove={() => remove(item.id)}+ onCollapse={onCollapse}+ />+ ) : (+ <div className="body">+ <div className="item-content">+ {isBundle ? (+ <BundleFluidPreview+ item={item}+ expanded={expanded}+ isHorizontal={isHorizontal}+ onDragStart={handleDragStart}+ onCopy={onCopy}+ onRemove={() => remove(item.id)}+ onCollapse={onCollapse}+ />+ ) : (+ <Preview item={item} />+ )}+ </div>+ {(!isBundle || !expanded) && (+ <div className="item-footer">+ <div className="meta">+ <KindBadge item={item} />+ <ItemDetails item={item} />+ {item.hitCount > 1 && (+ <>+ <span>·</span>+ <span className="meta-hit-count" title={t('item.copiedTimes', { count: item.hitCount })}>+ ×{item.hitCount}+ </span>+ </>+ )}+ {copied && <span className="meta-copied">· {t('item.copied')}</span>}+ </div>+ <RelativeTime capturedAt={item.capturedAt} />+ </div>)}</div>- {(!isBundle || !expanded) && (- <div className="item-footer">- <div className="meta">- <KindBadge item={item} />- <ItemDetails item={item} />- {item.hitCount > 1 && (- <>- <span>·</span>- <span className="meta-hit-count" title={t('item.copiedTimes', { count: item.hitCount })}>- ×{item.hitCount}- </span>- </>- )}- {copied && <span className="meta-copied">· {t('item.copied')}</span>}- </div>- <RelativeTime capturedAt={item.capturedAt} />- </div>- )}- </div>+ )}<divclassName="actions"@@ -606,6 +675,7 @@ function HorizontalBundleExpanded({onDragStart: (e: React.DragEvent, req: DragRequest) => void}) {const { t } = useTranslation()+ const isPreviewing = useStore((s) => s.previewItemId) === item.idconst isImageCollection = item.data.kind === 'image-collection'const isFiles = item.data.kind === 'files'const images = item.data.kind === 'image-collection' ? item.data.images : []@@ -636,19 +706,46 @@ function HorizontalBundleExpanded({<ChevronLeftIcon /></button><div className="actions-pill" onClick={(e) => e.stopPropagation()}>+ <button+ className={`act${item.pinned ? ' active' : ''}`}+ title={item.pinned ? t('item.unpin') : t('item.pin')}+ onClick={(e) => {+ e.stopPropagation()+ e.currentTarget.blur()+ playToggleSound(!item.pinned)+ useStore.getState().togglePin(item.id, !item.pinned)+ }}+ >+ {item.pinned ? <PinFillIcon width={12} height={12} /> : <PinIcon width={12} height={12} />}+ </button>+ <button+ className={`act${isPreviewing ? ' preview-contract active' : ' preview-expand'}`}+ title={isPreviewing ? t('header.close') : t('item.expand')}+ onClick={(e) => {+ e.stopPropagation()+ e.preventDefault()+ e.currentTarget.blur()+ playCardExpandSound(!isPreviewing)+ const rect = e.currentTarget.closest('.item-main, .item')?.getBoundingClientRect()+ const rectData = rect ? { x: rect.x, y: rect.y, width: rect.width, height: rect.height } : undefined+ useStore.getState().setPreviewItemId(isPreviewing ? null : item.id, rectData)+ }}+ >+ {isPreviewing ? <ContractIcon width={12} height={12} /> : <ExpandIcon width={12} height={12} />}+ </button><buttonclassName="act"title={t('item.copy')}onClick={(e) => { e.stopPropagation(); e.currentTarget.blur(); onCopy(e) }}>- <CopyIcon />+ <CopyIcon width={12} height={12} /></button><buttonclassName="act danger"title={t('item.delete')}onClick={(e) => { e.stopPropagation(); e.currentTarget.blur(); onRemove() }}>- <TrashIcon />+ <TrashIcon width={12} height={12} /></button></div></div>@@ -805,13 +902,13 @@ function BundleFluidPreview({if (item.data.kind === 'image-collection') {const more = item.data.images.length - 1- const photoSize = isHorizontal ? 76 : 124+ const photoSize = isHorizontal ? 88 : 132return (<BundleExpandShellexpanded={expanded}stack={<>- <div className="bundle-stack-large" style={isHorizontal ? { height: 82 } : undefined}>+ <div className="bundle-stack-large" style={isHorizontal ? { height: 90 } : undefined}>{item.data.images.slice(0, 4).map((img, pathIndex) => ({ img, pathIndex })).reverse().map(({ img }, idx, arr) => {const realIndex = arr.length - 1 - idxconst spread = arr.length > 1 ? (isHorizontal ? 12 : 16) : 0@@ -901,13 +998,13 @@ function BundleFluidPreview({const entries = item.data.entriesconst paths = item.data.pathsconst count = paths.length- const photoSize = isHorizontal ? 76 : 124+ const photoSize = isHorizontal ? 88 : 132return (<BundleExpandShellexpanded={expanded}stack={<>- <div className="bundle-stack-large" style={isHorizontal ? { height: 82 } : undefined}>+ <div className="bundle-stack-large" style={isHorizontal ? { height: 90 } : undefined}>{paths.slice(0, 4).map((filePath, i) => ({ filePath, pathIndex: i })).reverse().map(({ filePath, pathIndex }, idx, arr) => {const realIndex = arr.length - 1 - idxconst entry = entries?.[pathIndex]@@ -1021,6 +1118,454 @@ function BundleFluidPreview({return null}+/* ------------------------------------------------------------------ */+/* Image Folder Card (Framed single image or fanned photo stack) */+/* ------------------------------------------------------------------ */++interface ImageCardEntry {+ id: string+ src?: string+ fallbackSrc?: string+ name?: string+ width?: number+ height?: number+ bytes?: number+}++function getImageEntries(item: ClipboardItemDto): ImageCardEntry[] {+ if (item.data.kind === 'image') {+ return [{+ id: item.id,+ src: item.data.preview,+ name: item.data.fileName || item.data.source || 'clipboard',+ width: item.data.width,+ height: item.data.height,+ bytes: item.data.bytes+ }]+ }+ if (item.data.kind === 'image-collection') {+ return item.data.images.map((img, i) => ({+ id: img.imageId || `${item.id}-${i}`,+ src: img.preview,+ name: `image-${i + 1}`,+ width: img.width,+ height: img.height,+ bytes: img.bytes+ }))+ }+ if (item.data.kind === 'files') {+ return item.data.paths.map((filePath, i) => {+ const entry = item.data.entries?.[i]+ const fallback = fileStreamUrl(filePath)+ return {+ id: `${item.id}-${filePath}-${i}`,+ src: entry?.preview || fallback,+ fallbackSrc: fallback,+ name: formatImageDisplayName(filePath, item.capturedAt) || entry?.name || basename(filePath),+ width: entry?.width,+ height: entry?.height,+ bytes: entry?.size+ }+ })+ }+ return []+}++/* ------------------------------------------------------------------ */+/* Mini Image Folder Card (For Expanded Collections / Stacks) */+/* ------------------------------------------------------------------ */++function MiniImageFolderCard({+ item,+ img,+ isHorizontal,+ onDragStart+}: {+ item: ClipboardItemDto+ img: ImageCardEntry+ isHorizontal: boolean+ onDragStart?: (e: React.DragEvent, req: DragRequest) => void+}) {+ const { t } = useTranslation()+ const [copied, setCopied] = useState(false)+ const isImgCol = item.data.kind === 'image-collection'+ const subReq = isImgCol ? { id: item.id, imageId: img.id } : { id: item.id, paths: [img.id] }+ const dims = img.width && img.height ? `${img.width}×${img.height}` : ''+ const size = img.bytes ? formatBytes(img.bytes) : ''+ const displayName = img.name && img.name !== 'clipboard' && !img.name.startsWith('image-') ? img.name : dims || 'image'++ const handleCopy = (e: React.MouseEvent) => {+ e.stopPropagation()+ e.currentTarget.blur()+ playButtonClickSound()+ if (isImgCol) {+ useStore.getState().copySubitem({ id: item.id, imageId: img.id })+ } else {+ useStore.getState().copySubitem({ id: item.id, paths: [img.id] })+ }+ setCopied(true)+ setTimeout(() => setCopied(false), 900)+ }++ const handleUngroup = (e: React.MouseEvent) => {+ e.stopPropagation()+ e.currentTarget.blur()+ playDeleteSound()+ if (isImgCol) {+ window.edge.splitItem({ id: item.id, imageId: img.id, splitPlacement: 'after' })+ } else {+ window.edge.splitItem({ id: item.id, paths: [img.id], splitPlacement: 'after' })+ }+ }++ const handlePaste = (e: React.MouseEvent) => {+ e.stopPropagation()+ tryPaste(() => {+ if (isImgCol) {+ window.edge.pasteSubitem({ id: item.id, imageId: img.id })+ } else {+ window.edge.pasteSubitem({ id: item.id, paths: [img.id] })+ }+ })+ }++ return (+ <motion.div+ className="mini-image-folder-card"+ variants={rowVariants}+ draggable+ onMouseEnter={() => window.edge.prestageDrag(subReq)}+ onPointerDown={() => window.edge.prestageDrag(subReq)}+ onDragStartCapture={(e: any) => {+ e.stopPropagation()+ onDragStart?.(e, subReq)+ }}+ onClick={handlePaste}+ >+ {copied && (+ <motion.div+ key="copy-ripple"+ initial={{ opacity: 0.75, scale: 0.2 }}+ animate={{ opacity: 0, scale: 1.6 }}+ transition={{ duration: 0.45, ease: [0.16, 1, 0.3, 1] }}+ style={{+ position: 'absolute',+ inset: 0,+ borderRadius: 12,+ background: 'radial-gradient(circle at center, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.08) 45%, transparent 75%)',+ pointerEvents: 'none',+ zIndex: 15+ }}+ />+ )}+ <div className="mini-image-folder-card-inner">+ {/* Blue Gradient Viewport */}+ <div className="mini-image-folder-viewport">+ <img+ className="mini-image-folder-thumb"+ src={img.src}+ onError={(e) => {+ if (img.fallbackSrc && e.currentTarget.src !== img.fallbackSrc) {+ e.currentTarget.src = img.fallbackSrc+ }+ }}+ alt=""+ loading="lazy"+ decoding="async"+ draggable={false}+ />+ </div>++ {/* Solid Black Curved Flap */}+ <div className="mini-image-folder-flap-wrap">+ <svg+ className="mini-image-folder-flap-svg"+ viewBox="0 0 240 74"+ preserveAspectRatio="none"+ >+ <path+ d="M 0,74 L 0,6 Q 0,0 6,0 L 46,0 C 56,0 63,6 68,12 C 73,18 80,24 90,24 L 234,24 Q 240,24 240,30 L 240,74 Z"+ />+ </svg>++ <div className="mini-image-folder-flap-content">+ <div className="mini-image-folder-flap-header" />+ <div className="mini-image-folder-flap-footer">+ <div className="mini-image-folder-meta">+ <span className="kind-badge">{t('filters.images').toLowerCase().slice(0, -1) || t('filters.images').toLowerCase()}</span>+ {displayName && (+ <span className="mini-image-folder-source-name" title={displayName}>+ · {displayName}+ </span>+ )}+ {copied && <span className="meta-copied">· {t('item.copied')}</span>}+ </div>+ {size && <span className="mini-image-folder-size">{size}</span>}+ </div>+ </div>+ </div>++ {/* Hover Action Buttons (Copy, Ungroup) */}+ <div className="mini-image-folder-actions" onClick={(e) => e.stopPropagation()}>+ <button+ className="act"+ title={isImgCol ? t('item.copy') : t('item.copyFilePath')}+ onClick={handleCopy}+ >+ <CopyIcon width={11} height={11} />+ </button>+ <button+ className="act danger"+ title={t('item.ungroup')}+ onClick={handleUngroup}+ >+ <MinusIcon width={11} height={11} />+ </button>+ </div>+ </div>+ </motion.div>+ )+}++function ImageFolderCard({+ item,+ copied = false,+ expanded = false,+ isHorizontal = false,+ onDragStart,+ onCopy,+ onRemove,+ onCollapse+}: {+ item: ClipboardItemDto+ copied?: boolean+ expanded?: boolean+ isHorizontal?: boolean+ onDragStart?: (e: React.DragEvent, req: DragRequest) => void+ onCopy?: (e: React.MouseEvent) => void+ onRemove?: () => void+ onCollapse?: (e?: React.MouseEvent) => void+}) {+ const { t } = useTranslation()+ const isPreviewing = useStore((s) => s.previewItemId) === item.id+ const images = getImageEntries(item)+ const count = images.length++ if (count === 0) return null++ const isStack = count > 1+ const displayCount = Math.min(count, 4)+ const displayImages = isStack ? images.slice(0, 4) : images++ // Meta details for footer+ let badgeText = ''+ let metaDetail = ''++ if (!isStack) {+ badgeText = t('filters.images').toLowerCase().slice(0, -1) || t('filters.images').toLowerCase()+ const sourceName = images[0].name+ if (sourceName && sourceName !== 'clipboard' && sourceName !== 'image') {+ metaDetail = sourceName+ }+ } else {+ badgeText = `${count} ${t('filters.images').toLowerCase()}`+ const totalBytes = images.reduce((sum, img) => sum + (img.bytes || 0), 0)+ if (totalBytes > 0) {+ metaDetail = formatBytes(totalBytes)+ }+ }++ return (+ <div className={`image-folder-card-inner${expanded && isStack ? ' is-expanded-folder' : ''}`}>+ <div className={`image-folder-viewport${expanded && isStack ? ' is-expanded-viewport' : ''}`}>+ {!isStack ? (+ displayImages[0].src ? (+ <img+ className="image-folder-thumb"+ src={displayImages[0].src}+ onError={(e) => {+ if (displayImages[0].fallbackSrc && e.currentTarget.src !== displayImages[0].fallbackSrc) {+ e.currentTarget.src = displayImages[0].fallbackSrc+ }+ }}+ alt=""+ loading="lazy"+ decoding="async"+ draggable={false}+ />+ ) : (+ <div className="preview">[{t('item.imageItem')}]</div>+ )+ ) : !expanded ? (+ <div className="image-folder-stack-deck" data-count={displayCount}>+ {displayImages.map((img, idx) => (+ <div+ key={img.id}+ className={`image-folder-stack-item pos-${idx}`}+ >+ <img+ src={img.src}+ onError={(e) => {+ if (img.fallbackSrc && e.currentTarget.src !== img.fallbackSrc) {+ e.currentTarget.src = img.fallbackSrc+ }+ }}+ alt=""+ loading="lazy"+ decoding="async"+ draggable={false}+ />+ </div>+ ))}+ </div>+ ) : (+ <div className="image-folder-expanded-content">+ {/* Top Header inside Expanded Blue Viewport */}+ <div+ className="image-folder-expanded-top-bar"+ title={t('item.collapsePinned')}+ onClick={(e) => {+ e.stopPropagation()+ onCollapse?.(e)+ }}+ >+ <button+ type="button"+ className="image-folder-collapse-btn"+ title={t('item.collapsePinned')}+ onClick={(e) => {+ e.stopPropagation()+ e.currentTarget.blur()+ onCollapse?.(e)+ }}+ >+ {isHorizontal ? <ChevronLeftIcon width={13} height={13} /> : <ChevronUpIcon width={13} height={13} />}+ </button>+ <span className="image-folder-expanded-title">+ {count} {t('filters.images').toLowerCase()}+ </span>+ <div className="actions-pill" onClick={(e) => e.stopPropagation()}>+ <button+ className={`act${item.pinned ? ' active' : ''}`}+ title={item.pinned ? t('item.unpin') : t('item.pin')}+ onClick={(e) => {+ e.stopPropagation()+ e.currentTarget.blur()+ playToggleSound(!item.pinned)+ useStore.getState().togglePin(item.id, !item.pinned)+ }}+ >+ {item.pinned ? <PinFillIcon width={12} height={12} /> : <PinIcon width={12} height={12} />}+ </button>+ <button+ className={`act${isPreviewing ? ' preview-contract active' : ' preview-expand'}`}+ title={isPreviewing ? t('header.close') : t('item.expand')}+ onClick={(e) => {+ e.stopPropagation()+ e.preventDefault()+ e.currentTarget.blur()+ playCardExpandSound(!isPreviewing)+ const rect = e.currentTarget.closest('.item-main, .item')?.getBoundingClientRect()+ const rectData = rect ? { x: rect.x, y: rect.y, width: rect.width, height: rect.height } : undefined+ useStore.getState().setPreviewItemId(isPreviewing ? null : item.id, rectData)+ }}+ >+ {isPreviewing ? <ContractIcon width={12} height={12} /> : <ExpandIcon width={12} height={12} />}+ </button>+ <button+ className="act"+ title={t('item.copy')}+ onClick={(e) => {+ e.stopPropagation()+ e.currentTarget.blur()+ onCopy?.(e)+ }}+ >+ <CopyIcon width={12} height={12} />+ </button>+ <button+ className="act danger"+ title={t('item.delete')}+ onClick={(e) => {+ e.stopPropagation()+ e.currentTarget.blur()+ playDeleteSound()+ onRemove?.()+ }}+ >+ <TrashIcon width={12} height={12} />+ </button>+ </div>+ </div>++ {/* List / Track of Mini Image Folder Cards */}+ {isHorizontal ? (+ <div className="image-stack-expanded-track" onClick={(e) => e.stopPropagation()}>+ {images.map((img) => (+ <MiniImageFolderCard+ key={img.id}+ item={item}+ img={img}+ isHorizontal={isHorizontal}+ onDragStart={onDragStart}+ />+ ))}+ </div>+ ) : (+ <div className="image-stack-expanded-list" onClick={(e) => e.stopPropagation()}>+ {images.map((img) => (+ <MiniImageFolderCard+ key={img.id}+ item={item}+ img={img}+ isHorizontal={isHorizontal}+ onDragStart={onDragStart}+ />+ ))}+ </div>+ )}+ </div>+ )}+ </div>++ {/* Solid Black Folder Flap (NO stroke/borders, smooth curved silhouette) */}+ <div className="image-folder-flap-wrap">+ <svg+ className="image-folder-flap-svg"+ viewBox="0 0 240 74"+ preserveAspectRatio="none"+ >+ <path+ d="M 0,74 L 0,6 Q 0,0 6,0 L 46,0 C 56,0 63,6 68,12 C 73,18 80,24 90,24 L 234,24 Q 240,24 240,30 L 240,74 Z"+ />+ </svg>++ <div className="image-folder-flap-content">+ <div className="image-folder-flap-header" />++ <div className="image-folder-flap-footer">+ <div className="image-folder-meta">+ <span className="kind-badge">{badgeText}</span>+ {metaDetail && (+ <span className="image-folder-source-name" title={metaDetail}>+ · {metaDetail}+ </span>+ )}+ {item.hitCount > 1 && (+ <span className="meta-hit-count" title={t('item.copiedTimes', { count: item.hitCount })}>+ · ×{item.hitCount}+ </span>+ )}+ {copied && <span className="meta-copied">· {t('item.copied')}</span>}+ </div>+ <RelativeTime capturedAt={item.capturedAt} />+ </div>+ </div>+ </div>+ </div>+ )+}+/* ------------------------------------------------------------------ *//* Preview *//* ------------------------------------------------------------------ */diff --git a/src/components/PreviewFlyout.tsx b/src/components/PreviewFlyout.tsxindex e21121b..13fe948 100644--- a/src/components/PreviewFlyout.tsx+++ b/src/components/PreviewFlyout.tsx@@ -309,7 +309,7 @@ export function PreviewFlyout({ isRight }: { isRight: boolean }) {style={{width: '100%',maxHeight: maxFlyoutHeight,- background: dragOver ? 'rgba(15, 30, 18, 0.95)' : '#141414',+ background: dragOver ? 'rgba(15, 30, 18, 0.95)' : '#000000',borderRadius: 20,border: dragOver ? '2px dashed #4caf50' : 'none',overflow: 'hidden',@@ -527,66 +527,32 @@ function QuickActionButton({title,icon: Icon,onClick,- activeColor = '#4caf50',- solidDark = false,size = 28}: {title: stringicon: anyonClick: () => any- activeColor?: string- solidDark?: booleansize?: number}) {const [copied, setCopied] = useState(false)const handleClick = async (e: React.MouseEvent) => {e.stopPropagation()+ e.preventDefault()+ e.currentTarget.blur()await onClick()setCopied(true)setTimeout(() => setCopied(false), 1200)}- const defaultBg = solidDark ? 'rgba(0, 0, 0, 0.85)' : 'rgba(255, 255, 255, 0.06)'- const defaultBorder = solidDark ? '1px solid rgba(255, 255, 255, 0.25)' : '1px solid rgba(255, 255, 255, 0.08)'- const defaultColor = solidDark ? '#ffffff' : 'rgba(255, 255, 255, 0.75)'-- const hoverBg = solidDark ? 'rgba(0, 0, 0, 0.98)' : 'rgba(255, 255, 255, 0.18)'- const hoverColor = '#ffffff'- const iconSize = size === 24 ? 12 : 14- const borderRadius = size === 24 ? 6 : 8+ const iconSize = size <= 26 ? 13 : 15return (<button+ className={`act${copied ? ' active' : ''}`}title={copied ? t('flyout.copied') : title}onClick={handleClick}- style={{- width: size,- height: size,- background: copied ? (solidDark ? '#4caf50' : 'rgba(76, 175, 80, 0.2)') : defaultBg,- border: copied ? (solidDark ? '1px solid #4caf50' : '1px solid rgba(76, 175, 80, 0.4)') : defaultBorder,- color: copied ? (solidDark ? '#ffffff' : activeColor) : defaultColor,- borderRadius,- cursor: 'pointer',- display: 'flex',- alignItems: 'center',- justifyContent: 'center',- transition: 'all 0.15s ease',- flexShrink: 0,- boxShadow: solidDark ? '0 4px 12px rgba(0, 0, 0, 0.5)' : undefined- }}- onMouseEnter={(e) => {- if (!copied) {- e.currentTarget.style.background = hoverBg- e.currentTarget.style.color = hoverColor- }- }}- onMouseLeave={(e) => {- if (!copied) {- e.currentTarget.style.background = defaultBg- e.currentTarget.style.color = defaultColor- }- }}+ style={{ width: size, height: size }}>{copied ? <CheckIcon width={iconSize} height={iconSize} /> : <Icon width={iconSize} height={iconSize} />}</button>@@ -596,53 +562,26 @@ function QuickActionButton({function ExplorerButton({path,title,- size = 28,- solidDark = false+ size = 28}: {path: stringtitle?: stringsize?: number- solidDark?: boolean}) {const { t } = useTranslation()- const defaultBg = solidDark ? 'rgba(0, 0, 0, 0.85)' : 'rgba(255, 255, 255, 0.06)'- const defaultBorder = solidDark ? '1px solid rgba(255, 255, 255, 0.25)' : '1px solid rgba(255, 255, 255, 0.08)'- const defaultColor = solidDark ? '#ffffff' : 'rgba(255, 255, 255, 0.75)'- const hoverBg = solidDark ? 'rgba(0, 0, 0, 0.98)' : 'rgba(255, 255, 255, 0.18)'- const hoverColor = '#ffffff'- const iconSize = size === 24 ? 12 : 14- const borderRadius = size === 24 ? 6 : 8+ const iconSize = size <= 26 ? 13 : 15return (<button+ className="act"title={title || t('flyout.openInExplorer')}onClick={(e) => {e.stopPropagation()+ e.preventDefault()+ e.currentTarget.blur()window.edge.revealFile(path)}}- style={{- width: size,- height: size,- background: defaultBg,- border: defaultBorder,- color: defaultColor,- borderRadius,- cursor: 'pointer',- display: 'flex',- alignItems: 'center',- justifyContent: 'center',- transition: 'all 0.15s ease',- flexShrink: 0,- boxShadow: solidDark ? '0 4px 12px rgba(0, 0, 0, 0.5)' : undefined- }}- onMouseEnter={(e) => {- e.currentTarget.style.background = hoverBg- e.currentTarget.style.color = hoverColor- }}- onMouseLeave={(e) => {- e.currentTarget.style.background = defaultBg- e.currentTarget.style.color = defaultColor- }}+ style={{ width: size, height: size }}><FolderOpenIcon width={iconSize} height={iconSize} /></button>@@ -654,48 +593,25 @@ const CODE_FONT = 'var(--font-ui)'function SelectionBadge({isSelected,+ forceVisible,onToggle}: {isSelected: boolean+ forceVisible?: booleanonToggle: (e: React.MouseEvent) => void}) {return (<div+ className={`subitem-select-badge${isSelected ? ' selected' : ''}${forceVisible ? ' force-visible' : ''}`}onClick={(e) => {e.stopPropagation()onToggle(e)}}- title={isSelected ? t('flyout.deselectItem') : t('flyout.selectItem')}- style={{- display: 'flex',- alignItems: 'center',- justifyContent: 'center',- padding: 4,- margin: -4,- cursor: 'pointer',- zIndex: 6,- flexShrink: 0- }}+ title={isSelected ? t('flyout.deselectItem') : t('flyout.selectItem')}>- <div- style={{- width: 22,- height: 22,- borderRadius: 5,- background: isSelected ? '#ffffff' : 'rgba(0, 0, 0, 0.75)',- border: isSelected ? '2px solid #ffffff' : '2px solid rgba(255, 255, 255, 0.5)',- color: isSelected ? '#000000' : 'transparent',- display: 'flex',- alignItems: 'center',- justifyContent: 'center',- boxShadow: isSelected ? '0 2px 8px rgba(0, 0, 0, 0.6)' : '0 2px 6px rgba(0, 0, 0, 0.4)',- transition: 'background 0.15s ease, border-color 0.15s ease, color 0.15s ease'- }}- >- {isSelected && (- <CheckIcon width={14} height={14} />- )}- </div>+ {isSelected && (+ <CheckIcon width={12} height={12} style={{ color: '#000', strokeWidth: 3 }} />+ )}</div>)}@@ -913,12 +829,13 @@ function PreviewContent({if (item.data.kind === 'image-collection') {return (- <div style={{ display: 'flex', flexDirection: 'column', gap: 16 }}>+ <div style={{ display: 'flex', flexDirection: 'column', gap: 12 }}>{item.data.images.map((img: any, idx: number) => {const isSelected = selectedKeys?.has(img.imageId) ?? falsereturn (<divkey={img.imageId}+ className={`item flyout-subitem${isSelected ? ' is-selected' : ''}`}draggable={true}onDragStart={(e) => {e.preventDefault()@@ -939,38 +856,43 @@ function PreviewContent({}}}title={selectedKeys && selectedKeys.size > 0 ? (isSelected ? t('flyout.clickToDeselect') : t('flyout.clickToSelect')) : t('flyout.clickToPasteImageDrag')}- style={{- display: 'flex',- flexDirection: 'column',- gap: 8,- position: 'relative',- cursor: 'grab',- padding: 4,- borderRadius: 10,- border: isSelected ? '2px solid #ffffff' : '2px solid transparent',- background: isSelected ? 'rgba(255, 255, 255, 0.08)' : 'transparent',- boxShadow: isSelected ? '0 0 16px rgba(255, 255, 255, 0.2)' : 'none',- transition: 'all 0.15s ease'- }}>- <div style={{ position: 'absolute', top: 12, left: 12, zIndex: 3 }}>- <SelectionBadge- isSelected={isSelected}- onToggle={(e) => onToggleSelectKey?.(img.imageId, e)}- />- </div>+ <div className="item-main">+ <div className="body">+ <div className="item-content">+ <div className="thumb-wrap">+ <img+ className="thumb"+ src={`edgelocal://${img.imageId}`}+ alt=""+ loading="lazy"+ decoding="async"+ draggable={false}+ style={{ maxHeight: '60vh' }}+ />+ </div>+ </div>+ <div className="item-footer">+ <span className="kind-badge">{idx + 1} / {item.data.images.length} · {img.width} × {img.height}</span>+ <span className="meta-size">{formatBytes(img.bytes)}</span>+ </div>+ </div>- <div style={{ display: 'flex', justifyContent: 'flex-end', gap: 6, position: 'absolute', top: 12, right: 12, zIndex: 2 }}>- <QuickActionButton- title={t('flyout.copyImage')}- icon={CopyIcon}- onClick={() => useStore.getState().copySubitem({ id: item.id, imageId: img.imageId })}- solidDark={true}- />- </div>- <img src={`edgelocal://${img.imageId}`} alt="" style={{ width: '100%', maxHeight: '65vh', objectFit: 'contain', borderRadius: 8 }} draggable={false} />- <div style={{ fontSize: 11, color: 'rgba(255,255,255,0.35)', textAlign: 'center', fontFamily: SYS_FONT, letterSpacing: '0.02em' }}>- {idx + 1} / {item.data.images.length} · {img.width} × {img.height} · {formatBytes(img.bytes)}+ <div className="actions" onClick={(e) => e.stopPropagation()}>+ <QuickActionButton+ title={t('flyout.copyImage')}+ icon={CopyIcon}+ onClick={() => useStore.getState().copySubitem({ id: item.id, imageId: img.imageId })}+ />+ </div>++ {onToggleSelectKey && (+ <SelectionBadge+ isSelected={isSelected}+ forceVisible={selectedKeys && selectedKeys.size > 0}+ onToggle={(e) => onToggleSelectKey(img.imageId, e)}+ />+ )}</div></div>)@@ -988,6 +910,7 @@ function PreviewContent({const fullResUrl = `edgelocal://file/${encodeURIComponent(p.replace(/\\/g, '/'))}`return (<div+ className="item flyout-subitem single-hero-card"draggable={true}onDragStart={(e) => {e.preventDefault()@@ -1001,37 +924,44 @@ function PreviewContent({tryPaste(() => useStore.getState().paste(item.id))}}title={t('flyout.clickToPasteDrag')}- style={{ display: 'flex', flexDirection: 'column', gap: 12, position: 'relative', cursor: 'grab' }}>- <div style={{ display: 'flex', justifyContent: 'flex-end', gap: 6, position: 'absolute', top: 8, right: 8, zIndex: 2 }}>- <QuickActionButton- title={t('flyout.copyFile')}- icon={CopyIcon}- onClick={() => useStore.getState().copy(item.id)}- solidDark={true}- size={28}- />- <ExplorerButton- path={p}- title={t('flyout.openInExplorer')}- solidDark={true}- size={28}- />- </div>- <img- src={fullResUrl}- onError={(e) => {- if (entry?.preview) {- e.currentTarget.src = entry.preview- }- }}- alt={fileName}- style={{ width: '100%', maxHeight: '65vh', objectFit: 'contain', borderRadius: 8 }}- draggable={false}- />- <div style={{ fontSize: 12, color: 'rgba(255,255,255,0.5)', fontFamily: SYS_FONT, letterSpacing: '0.02em', display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>- <span>{fileName}</span>- {entry?.size ? <span>{formatBytes(entry.size)}</span> : null}+ <div className="item-main">+ <div className="body">+ <div className="item-content">+ <div className="thumb-wrap">+ <img+ className="thumb"+ src={fullResUrl}+ onError={(e) => {+ if (entry?.preview) {+ e.currentTarget.src = entry.preview+ }+ }}+ alt={fileName}+ loading="lazy"+ decoding="async"+ draggable={false}+ style={{ maxHeight: '60vh' }}+ />+ </div>+ </div>+ <div className="item-footer">+ <span className="kind-badge">{fileName}</span>+ {entry?.size ? <span className="meta-size">{formatBytes(entry.size)}</span> : null}+ </div>+ </div>++ <div className="actions" onClick={(e) => e.stopPropagation()}>+ <QuickActionButton+ title={t('flyout.copyFile')}+ icon={CopyIcon}+ onClick={() => useStore.getState().copy(item.id)}+ />+ <ExplorerButton+ path={p}+ title={t('flyout.openInExplorer')}+ />+ </div></div></div>)@@ -1045,6 +975,7 @@ function PreviewContent({const fileName = formatImageDisplayName(entry?.name || p, item.capturedAt)return (<div+ className="item flyout-subitem single-hero-card"draggable={true}onDragStart={(e) => {e.preventDefault()@@ -1058,62 +989,41 @@ function PreviewContent({tryPaste(() => useStore.getState().paste(item.id))}}title={t('flyout.clickToPasteDrag')}- style={{- display: 'flex',- flexDirection: 'column',- alignItems: 'center',- textAlign: 'center',- gap: 16,- padding: '36px 20px 28px',- background: 'rgba(255, 255, 255, 0.035)',- borderRadius: 14,- border: '1px solid rgba(255, 255, 255, 0.06)',- position: 'relative',- cursor: 'grab'- }}>- <div style={{ display: 'flex', justifyContent: 'flex-end', gap: 6, position: 'absolute', top: 12, right: 12, zIndex: 2 }}>- <QuickActionButton- title={t('flyout.copyFile')}- icon={CopyIcon}- onClick={() => useStore.getState().copy(item.id)}- size={28}- />- <ExplorerButton- path={p}- title={t('flyout.openInExplorer')}- size={28}- />- </div>-- <div style={{- width: 104,- height: 104,- display: 'flex',- alignItems: 'center',- justifyContent: 'center',- filter: 'drop-shadow(0 8px 24px rgba(0, 0, 0, 0.55))',- marginTop: 4- }}>- <FileKindIcon path={p} width={104} height={104} isDirectory={entry?.isDirectory} />- </div>-- <div style={{ display: 'flex', flexDirection: 'column', gap: 6, maxWidth: '100%', padding: '0 10px' }}>- <div- title={fileName}- style={{- fontSize: 15,- fontWeight: 600,- color: '#ffffff',- wordBreak: 'break-word',- lineHeight: 1.4,- fontFamily: SYS_FONT- }}- >- {fileName}+ <div className="item-main">+ <div className="body">+ <div className="item-content" style={{ padding: '24px 20px 12px 20px' }}>+ <div className="single-file-preview">+ <div className="single-file-hero" style={{ color: info.color }}>+ <FileKindIcon path={p} width={120} height={120} isDirectory={entry?.isDirectory} />+ </div>+ <div className="single-file-meta" style={{ marginTop: 8 }}>+ <div className="preview single single-file-name" title={fileName} style={{ fontSize: 15, WebkitLineClamp: 3, whiteSpace: 'normal', lineHeight: 1.4 }}>+ {fileName}+ </div>+ </div>+ </div>+ </div>+ <div className="item-footer" style={{ padding: '8px 18px 12px 18px' }}>+ <span className="kind-badge" style={{ color: info.color, fontSize: 12 }}>+ {info.label.toLowerCase()}+ </span>+ {!entry?.isDirectory && entry?.size ? (+ <span className="meta-size" style={{ fontSize: 12 }}>{formatBytes(entry.size)}</span>+ ) : null}+ </div></div>- <div style={{ fontSize: 12, color: 'rgba(255, 255, 255, 0.45)', fontFamily: SYS_FONT, letterSpacing: '0.02em' }}>- {!entry?.isDirectory && entry?.size ? `${formatBytes(entry.size)} · ` : ''}{info.label}++ <div className="actions" onClick={(e) => e.stopPropagation()}>+ <QuickActionButton+ title={t('flyout.copyFile')}+ icon={CopyIcon}+ onClick={() => useStore.getState().copy(item.id)}+ />+ <ExplorerButton+ path={p}+ title={t('flyout.openInExplorer')}+ /></div></div></div>@@ -1127,7 +1037,7 @@ function PreviewContent({const useSingleColumn = hasImageFilesreturn (- <div style={{ display: useSingleColumn ? 'flex' : 'grid', flexDirection: useSingleColumn ? 'column' : undefined, gridTemplateColumns: useSingleColumn ? undefined : 'repeat(2, minmax(0, 1fr))', gap: 12, width: '100%', boxSizing: 'border-box' }}>+ <div style={{ display: useSingleColumn ? 'flex' : 'grid', flexDirection: useSingleColumn ? 'column' : undefined, gridTemplateColumns: useSingleColumn ? undefined : 'repeat(2, minmax(0, 1fr))', gap: 10, width: '100%', boxSizing: 'border-box' }}>{item.data.paths.map((p: string, i: number) => {const entry = item.data.entries?.[i]const info = getFileKind(p, entry?.isDirectory)@@ -1140,6 +1050,7 @@ function PreviewContent({return (<divkey={i}+ className={`item flyout-subitem${isSelected ? ' is-selected' : ''}`}draggable={true}onDragStart={(e) => {e.preventDefault()@@ -1160,57 +1071,52 @@ function PreviewContent({}}}title={t('flyout.clickToPasteDrag')}- style={{- display: 'flex',- flexDirection: 'column',- gap: 8,- padding: 4,- background: isSelected ? 'rgba(255, 255, 255, 0.08)' : 'transparent',- borderRadius: 10,- border: isSelected ? '2px solid #ffffff' : '2px solid transparent',- cursor: 'grab',- position: 'relative',- minWidth: 0,- width: '100%',- boxSizing: 'border-box'- }}>- {onToggleSelectKey && (- <div style={{ position: 'absolute', top: 12, left: 12, zIndex: 3 }}>+ <div className="item-main">+ <div className="body">+ <div className="item-content">+ <div className="thumb-wrap">+ <img+ className="thumb"+ src={fullResUrl}+ onError={(e) => {+ if (entry?.preview) e.currentTarget.src = entry.preview+ }}+ alt={fileName}+ loading="lazy"+ decoding="async"+ draggable={false}+ style={{ maxHeight: useSingleColumn ? '50vh' : 110 }}+ />+ </div>+ </div>+ <div className="item-footer">+ <span className="kind-badge">{t('filters.images').toLowerCase().slice(0, -1)}</span>+ {entry?.size ? <span className="meta-size">{formatBytes(entry.size)}</span> : null}+ </div>+ </div>++ <div className="actions" onClick={(e) => e.stopPropagation()}>+ <QuickActionButton+ title={t('flyout.copyFile')}+ icon={CopyIcon}+ onClick={() => useStore.getState().copySubitem({ id: item.id, paths: [p] })}+ size={26}+ />+ <ExplorerButton+ path={p}+ title={t('flyout.openInExplorer')}+ size={26}+ />+ </div>++ {onToggleSelectKey && (<SelectionBadgeisSelected={isSelected}+ forceVisible={selectedKeys && selectedKeys.size > 0}onToggle={(e) => onToggleSelectKey(p, e)}/>- </div>- )}-- <div style={{ display: 'flex', justifyContent: 'flex-end', gap: 6, position: 'absolute', top: 12, right: 12, zIndex: 2 }}>- <QuickActionButton- title={t('flyout.copyFile')}- icon={CopyIcon}- onClick={() => useStore.getState().copySubitem({ id: item.id, paths: [p] })}- solidDark={true}- />- <ExplorerButton- path={p}- title={t('flyout.openInExplorer')}- solidDark={true}- />- </div>-- <img- src={fullResUrl}- onError={(e) => {- if (entry?.preview) e.currentTarget.src = entry.preview- }}- alt={fileName}- loading="lazy"- decoding="async"- draggable={false}- style={{ width: '100%', maxHeight: '65vh', objectFit: 'contain', borderRadius: 8 }}- />- <div style={{ fontSize: 11, color: 'rgba(255,255,255,0.35)', textAlign: 'center', fontFamily: SYS_FONT, letterSpacing: '0.02em' }}>- {fileName}{entry?.size ? ` · ${formatBytes(entry.size)}` : ''}+ )}</div></div>)@@ -1220,6 +1126,7 @@ function PreviewContent({return (<divkey={i}+ className={`item flyout-subitem${isSelected ? ' is-selected' : ''}`}draggable={true}onDragStart={(e) => {e.preventDefault()@@ -1240,101 +1147,52 @@ function PreviewContent({}}}title={t('flyout.clickToPasteDrag')}- style={{- display: 'flex',- flexDirection: 'column',- alignItems: 'center',- textAlign: 'center',- gap: 8,- padding: '14px 10px 12px',- background: isSelected ? 'rgba(255, 255, 255, 0.12)' : 'rgba(255, 255, 255, 0.035)',- borderRadius: 12,- border: isSelected ? '1px solid rgba(255, 255, 255, 0.3)' : '1px solid rgba(255, 255, 255, 0.06)',- cursor: 'grab',- position: 'relative',- minWidth: 0,- width: '100%',- boxSizing: 'border-box'- }}>- {/* Top Controls: Checkbox (left) + Action Buttons (right) */}- <div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', width: '100%', gap: 4 }}>- {onToggleSelectKey ? (- <div- onClick={(e) => {- e.stopPropagation()- onToggleSelectKey(p, e)- }}- style={{- width: 18,- height: 18,- borderRadius: 4,- border: isSelected ? '1.5px solid #fff' : '1.5px solid rgba(255, 255, 255, 0.3)',- background: isSelected ? '#fff' : 'transparent',- display: 'flex',- alignItems: 'center',- justifyContent: 'center',- cursor: 'pointer',- flexShrink: 0- }}- >- {isSelected && (- <CheckIcon width={12} height={12} style={{ color: '#000', strokeWidth: 3 }} />- )}+ <div className="item-main">+ <div className="body">+ <div className="item-content">+ <div className="single-file-preview">+ <div className="single-file-hero" style={{ color: info.color }}>+ <FileKindIcon path={p} width={88} height={88} isDirectory={entry?.isDirectory} />+ </div>+ <div className="single-file-meta">+ <div className="preview single single-file-name" title={fileName}>+ {fileName}+ </div>+ </div>+ </div>+ </div>+ <div className="item-footer">+ <span className="kind-badge" style={{ color: info.color }}>+ {info.label.toLowerCase()}+ </span>+ {!entry?.isDirectory && entry?.size ? (+ <span className="meta-size">{formatBytes(entry.size)}</span>+ ) : null}</div>- ) : <div />}+ </div>- <div style={{ display: 'flex', gap: 4 }}>+ <div className="actions" onClick={(e) => e.stopPropagation()}><QuickActionButtontitle={t('flyout.copyFile')}icon={CopyIcon}onClick={() => useStore.getState().copySubitem({ id: item.id, paths: [p] })}- size={24}+ size={26}/><ExplorerButtonpath={p}title={t('flyout.openInExplorer')}- size={24}+ size={26}/></div>- </div>- {/* Centered Large 3D Pastel Vector Icon */}- <div style={{- width: 64,- height: 64,- display: 'flex',- alignItems: 'center',- justifyContent: 'center',- filter: 'drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45))',- marginTop: 8- }}>- <FileKindIcon path={p} width={64} height={64} isDirectory={entry?.isDirectory} />- </div>-- {/* File Name & Metadata below icon */}- <div style={{ display: 'flex', flexDirection: 'column', gap: 3, width: '100%', minWidth: 0, padding: '0 4px', boxSizing: 'border-box' }}>- <span- title={fileName}- style={{- fontSize: 12,- fontWeight: 500,- color: 'rgba(255, 255, 255, 0.92)',- wordBreak: 'break-word',- overflowWrap: 'anywhere',- lineHeight: 1.35,- fontFamily: SYS_FONT,- display: '-webkit-box',- WebkitLineClamp: 3,- WebkitBoxOrient: 'vertical',- overflow: 'hidden'- }}- >- {fileName}- </span>- <span style={{ fontSize: 11, color: 'rgba(255, 255, 255, 0.42)', fontFamily: SYS_FONT, letterSpacing: '0.02em' }}>- {!entry?.isDirectory && entry?.size ? formatBytes(entry.size) : info.label}- </span>+ {onToggleSelectKey && (+ <SelectionBadge+ isSelected={isSelected}+ forceVisible={selectedKeys && selectedKeys.size > 0}+ onToggle={(e) => onToggleSelectKey(p, e)}+ />+ )}</div></div>)diff --git a/src/styles/item.css b/src/styles/item.cssindex d2701bc..fd10a8e 100644--- a/src/styles/item.css+++ b/src/styles/item.css@@ -270,7 +270,7 @@}.bundle-stack-large {- height: 124px;+ height: 132px;position: relative;width: 100%;margin-top: 4px;@@ -283,13 +283,10 @@position: absolute;top: 50%;left: 50%;- /* Wrapper is the centering pivot only; the masked tiles render slightly- larger than it (154px inside a 140px box) so the fan keeps breathing- room inside the fixed 124px stack area without growing the card. */- margin-top: -70px;- margin-left: -70px;- width: 140px;- height: 140px;+ margin-top: -66px;+ margin-left: -66px;+ width: 132px;+ height: 132px;display: flex;align-items: center;justify-content: center;@@ -297,7 +294,7 @@border: none;box-shadow: none;transform-origin: center center;- filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.35));+ filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.42));}.kind-badge {@@ -440,6 +437,824 @@box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);}+/* Single Image Folder Card (Framed image in folder card + borderless folder flap) */+.item.is-image-folder-card {+ height: 205px;+ background: var(--bg-card, #141414);+ border-radius: var(--radius-card, 18px);+ overflow: hidden;+ padding: 5px;+ box-sizing: border-box;+ transition: background 0.16s ease;+}+++.item.is-image-folder-card:hover {+ background: var(--bg-card-hover, #1c1c1c);+}++.item.is-image-folder-card .item-main {+ display: flex;+ flex-direction: column;+ width: 100%;+ height: 100%;+ min-height: 0;+ flex: 1;+}++.image-folder-card-inner {+ position: relative;+ width: 100%;+ height: 100%;+ min-height: 0;+ flex: 1;+ display: flex;+ flex-direction: column;+ justify-content: space-between;+ border-radius: calc(var(--radius-card, 18px) - 5px);+ overflow: hidden;+ background: var(--bg-card, #141414);+ transition: background 0.16s ease;+}+++.item.is-image-folder-card:hover .image-folder-card-inner,+.item-main:hover .image-folder-card-inner {+ background: var(--bg-card-hover, #1c1c1c);+}++.image-folder-viewport {+ position: relative;+ width: 100%;+ flex: 1;+ height: 100%;+ min-height: 0;+ background: linear-gradient(+ 115deg,+ #a8def5 0%,+ #288ef6 25%,+ #0b64f6 52%,+ #1b57f6 78%,+ #769cf5 100%+ );+ overflow: hidden;+ display: flex;+ align-items: center;+ justify-content: center;+ border-radius: calc(var(--radius-card, 18px) - 5px) calc(var(--radius-card, 18px) - 5px) 0 0;+}++.image-folder-thumb {+ position: relative;+ max-width: calc(100% - 24px);+ max-height: calc(100% - 24px);+ object-fit: contain;+ border-radius: 6px;+ z-index: 2;+ filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.55));+ transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), filter 0.22s ease;+ pointer-events: none;+}++.item.is-image-folder-card:hover .image-folder-thumb,+.item-main:hover .image-folder-thumb {+ transform: scale(1.03) translateY(-1px);+ filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.65));+}++/* Image Stack Deck within Image Folder Card */+.image-folder-stack-deck {+ position: relative;+ width: 100%;+ height: 100%;+ display: flex;+ align-items: center;+ justify-content: center;+ pointer-events: none;+ margin-top: -10px; /* Shifts stack up into the visible sky above the flap */+}++.image-folder-stack-item {+ position: absolute;+ width: 146px;+ height: 98px;+ border-radius: 7px;+ overflow: hidden;+ background: #18181b;+ border: none;+ box-shadow:+ 0 12px 28px rgba(0, 0, 0, 0.55),+ 0 4px 10px rgba(0, 0, 0, 0.35);+ transform-origin: 50% 90%;+ transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, opacity 0.28s ease;+ will-change: transform;+}++.image-folder-stack-item img {+ width: 100%;+ height: 100%;+ object-fit: cover;+ display: block;+}++/* 2-Card Stack */+.image-folder-stack-deck[data-count="2"] .image-folder-stack-item.pos-0 {+ z-index: 2;+ transform: translate(-6px, 2px) rotate(-4.5deg) scale(1);+}+.image-folder-stack-deck[data-count="2"] .image-folder-stack-item.pos-1 {+ z-index: 1;+ transform: translate(12px, -4px) rotate(8.5deg) scale(0.96);+ opacity: 0.94;+}+.item.is-image-folder-card:hover .image-folder-stack-deck[data-count="2"] .image-folder-stack-item.pos-0,+.item-main:hover .image-folder-stack-deck[data-count="2"] .image-folder-stack-item.pos-0 {+ transform: translate(-10px, 0px) rotate(-7deg) scale(1.03);+}+.item.is-image-folder-card:hover .image-folder-stack-deck[data-count="2"] .image-folder-stack-item.pos-1,+.item-main:hover .image-folder-stack-deck[data-count="2"] .image-folder-stack-item.pos-1 {+ transform: translate(18px, -8px) rotate(13deg) scale(0.98);+ opacity: 1;+}++/* 3-Card Stack */+.image-folder-stack-deck[data-count="3"] .image-folder-stack-item.pos-0 {+ z-index: 3;+ transform: translate(-1px, 3px) rotate(-1.5deg) scale(1);+}+.image-folder-stack-deck[data-count="3"] .image-folder-stack-item.pos-1 {+ z-index: 2;+ transform: translate(14px, -3px) rotate(8deg) scale(0.96);+ opacity: 0.94;+}+.image-folder-stack-deck[data-count="3"] .image-folder-stack-item.pos-2 {+ z-index: 1;+ transform: translate(-15px, -6px) rotate(-9.5deg) scale(0.92);+ opacity: 0.88;+}+.item.is-image-folder-card:hover .image-folder-stack-deck[data-count="3"] .image-folder-stack-item.pos-0,+.item-main:hover .image-folder-stack-deck[data-count="3"] .image-folder-stack-item.pos-0 {+ transform: translate(-1px, 0px) rotate(-2deg) scale(1.03);+}+.item.is-image-folder-card:hover .image-folder-stack-deck[data-count="3"] .image-folder-stack-item.pos-1,+.item-main:hover .image-folder-stack-deck[data-count="3"] .image-folder-stack-item.pos-1 {+ transform: translate(22px, -6px) rotate(14deg) scale(0.98);+ opacity: 1;+}+.item.is-image-folder-card:hover .image-folder-stack-deck[data-count="3"] .image-folder-stack-item.pos-2,+.item-main:hover .image-folder-stack-deck[data-count="3"] .image-folder-stack-item.pos-2 {+ transform: translate(-24px, -10px) rotate(-15deg) scale(0.94);+ opacity: 0.95;+}++/* 4-Card Stack */+.image-folder-stack-deck[data-count="4"] .image-folder-stack-item.pos-0 {+ z-index: 4;+ transform: translate(2px, 3px) rotate(2deg) scale(1);+}+.image-folder-stack-deck[data-count="4"] .image-folder-stack-item.pos-1 {+ z-index: 3;+ transform: translate(-10px, -2px) rotate(-6deg) scale(0.96);+ opacity: 0.95;+}+.image-folder-stack-deck[data-count="4"] .image-folder-stack-item.pos-2 {+ z-index: 2;+ transform: translate(18px, -5px) rotate(11deg) scale(0.92);+ opacity: 0.90;+}+.image-folder-stack-deck[data-count="4"] .image-folder-stack-item.pos-3 {+ z-index: 1;+ transform: translate(-22px, -9px) rotate(-14deg) scale(0.88);+ opacity: 0.82;+}+.item.is-image-folder-card:hover .image-folder-stack-deck[data-count="4"] .image-folder-stack-item.pos-0,+.item-main:hover .image-folder-stack-deck[data-count="4"] .image-folder-stack-item.pos-0 {+ transform: translate(4px, 1px) rotate(3deg) scale(1.03);+}+.item.is-image-folder-card:hover .image-folder-stack-deck[data-count="4"] .image-folder-stack-item.pos-1,+.item-main:hover .image-folder-stack-deck[data-count="4"] .image-folder-stack-item.pos-1 {+ transform: translate(-16px, -4px) rotate(-9deg) scale(0.98);+ opacity: 1;+}+.item.is-image-folder-card:hover .image-folder-stack-deck[data-count="4"] .image-folder-stack-item.pos-2,+.item-main:hover .image-folder-stack-deck[data-count="4"] .image-folder-stack-item.pos-2 {+ transform: translate(26px, -9px) rotate(17deg) scale(0.95);+ opacity: 0.98;+}+.item.is-image-folder-card:hover .image-folder-stack-deck[data-count="4"] .image-folder-stack-item.pos-3,+.item-main:hover .image-folder-stack-deck[data-count="4"] .image-folder-stack-item.pos-3 {+ transform: translate(-30px, -14px) rotate(-21deg) scale(0.91);+ opacity: 0.92;+}++/* ------------------------------------------------------------------ */+/* Expanded Image Stack / Pinned Collection Styles */+/* ------------------------------------------------------------------ */++.item.is-image-folder-card.is-expanded {+ height: auto;+ min-height: 205px;+ max-height: none;+ padding: 5px;+}++.item.is-image-folder-card.is-expanded .image-folder-card-inner {+ height: auto;+ min-height: 205px;+ display: flex;+ flex-direction: column;+}++.list.horizontal .item.is-image-folder-card.is-expanded {+ height: 146px !important;+ min-height: 146px !important;+ max-height: 146px !important;+ padding: 4px;+ box-sizing: border-box;+ overflow: hidden !important;+}++.list.horizontal .item.is-image-folder-card.is-expanded .item-main {+ height: 100% !important;+ min-height: 0 !important;+ max-height: 100% !important;+ overflow: hidden !important;+}++.list.horizontal .item.is-image-folder-card.is-expanded .image-folder-card-inner {+ height: 100% !important;+ min-height: 0 !important;+ max-height: 100% !important;+ display: flex;+ flex-direction: column;+ justify-content: flex-start;+ position: relative;+ overflow: hidden !important;+}++.image-folder-viewport.is-expanded-viewport {+ height: auto;+ min-height: 170px;+ max-height: none;+ display: flex;+ flex-direction: column;+ justify-content: flex-start;+ align-items: stretch;+ padding: 8px 8px 36px 8px;+ box-sizing: border-box;+ overflow: visible;+}++.list.horizontal .image-folder-viewport.is-expanded-viewport {+ flex: 1;+ width: 100%;+ height: auto !important;+ min-height: 0 !important;+ max-height: none;+ padding: 4px 6px 2px 6px;+ display: flex;+ flex-direction: column;+ justify-content: flex-start;+ align-items: stretch;+ box-sizing: border-box;+ overflow: hidden !important;+}++.image-folder-expanded-content {+ display: flex;+ flex-direction: column;+ width: 100%;+ height: auto;+ min-height: 0;+ flex: 1;+}++.list.horizontal .image-folder-expanded-content {+ height: 100% !important;+ min-height: 0 !important;+ overflow: hidden !important;+}++/* Header bar inside the expanded blue gradient viewport */+.image-folder-expanded-top-bar {+ display: flex;+ align-items: center;+ justify-content: space-between;+ width: 100%;+ height: 28px;+ padding: 0 4px;+ margin-bottom: 10px;+ flex-shrink: 0;+ cursor: pointer;+ user-select: none;+ z-index: 10;+}++.list.horizontal .image-folder-expanded-top-bar {+ height: 20px;+ margin-bottom: 3px;+ padding: 0 2px;+}++.image-folder-collapse-btn {+ width: 24px;+ height: 24px;+ border-radius: 999px;+ display: flex;+ align-items: center;+ justify-content: center;+ background: rgba(0, 0, 0, 0.45);+ border: 1px solid rgba(255, 255, 255, 0.25);+ color: #ffffff;+ cursor: pointer;+ padding: 0;+ transition: background 0.14s ease, transform 0.12s ease;+}++.list.horizontal .image-folder-collapse-btn {+ width: 20px;+ height: 20px;+}++.image-folder-collapse-btn:hover {+ background: rgba(0, 0, 0, 0.7);+ transform: scale(1.08);+}++.image-folder-expanded-title {+ font-size: 13px;+ font-weight: 700;+ color: #ffffff;+ text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);+ letter-spacing: 0.02em;+}++.list.horizontal .image-folder-expanded-title {+ font-size: 11.5px;+ font-weight: 600;+}++.image-folder-expanded-top-bar .actions-pill {+ display: flex;+ align-items: center;+ gap: 4px;+ padding: 2px 6px;+ background: rgba(0, 0, 0, 0.5);+ border: 1px solid rgba(255, 255, 255, 0.25);+ border-radius: 999px;+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);+}++.list.horizontal .image-folder-expanded-top-bar .actions-pill {+ height: 20px;+ padding: 1px 4px;+ gap: 2px;+}++.image-folder-expanded-top-bar .actions-pill .act {+ width: 22px;+ height: 22px;+ display: flex;+ align-items: center;+ justify-content: center;+ background: transparent;+ border: none;+ border-radius: 4px;+ color: rgba(255, 255, 255, 0.9);+ cursor: pointer;+ padding: 0;+ transition: background 0.12s ease, color 0.12s ease;+}++.list.horizontal .image-folder-expanded-top-bar .actions-pill .act {+ width: 18px;+ height: 18px;+}++.image-folder-expanded-top-bar .actions-pill .act:hover {+ background: rgba(255, 255, 255, 0.25);+ color: #ffffff;+}++.image-folder-expanded-top-bar .actions-pill .act.active {+ color: #ffffff;+ background: rgba(255, 255, 255, 0.25);+}++.image-folder-expanded-top-bar .actions-pill .act.danger:hover {+ background: rgba(239, 68, 68, 0.45);+ color: #fca5a5;+}++/* Horizontal Track (Horizontal Dock Mode - Naturally expanded across items) */+.image-stack-expanded-track {+ display: flex;+ flex-direction: row;+ gap: 6px;+ flex: 1;+ min-height: 0;+ height: 84px;+ max-height: 84px;+ align-items: center;+ overflow-x: auto;+ overflow-y: hidden;+ scrollbar-width: none;+ -ms-overflow-style: none;+ padding: 2px 0;+ box-sizing: border-box;+}++.image-stack-expanded-track::-webkit-scrollbar {+ display: none;+}++/* Vertical List (Vertical Dock Mode - No internal scroll, fully expanded) */+.image-stack-expanded-list {+ display: flex;+ flex-direction: column;+ gap: 12px;+ width: 100%;+ height: auto;+ max-height: none;+ overflow: visible;+ padding: 2px 0 8px 0;+ box-sizing: border-box;+}++/* ------------------------------------------------------------------ */+/* Mini Image Folder Card (Exact Same Look & Design as Single Image) */+/* ------------------------------------------------------------------ */++.mini-image-folder-card {+ position: relative;+ width: 100%;+ height: auto;+ aspect-ratio: 242 / 205;+ padding: 4px;+ box-sizing: border-box;+ flex-shrink: 0;+ cursor: grab;+ border-radius: 15px;+ overflow: hidden;+ background: var(--bg-card, #141414);+ box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);+ border: none;+ transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background 0.16s ease;+ user-select: none;+}++.mini-image-folder-card:active {+ cursor: grabbing;+}++.mini-image-folder-card:hover {+ background: var(--bg-card-hover, #1c1c1c);+ transform: translateY(-2px);+ box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);+}++/* Horizontal Dock mini card sizing */+.list.horizontal .mini-image-folder-card {+ width: 115px;+ min-width: 115px;+ max-width: 115px;+ height: 80px;+ max-height: 80px;+ aspect-ratio: 210 / 146;+ flex-shrink: 0;+ padding: 2px;+ border-radius: 9px;+ box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);+}++.mini-image-folder-card-inner {+ position: relative;+ width: 100%;+ height: 100%;+ display: flex;+ flex-direction: column;+ justify-content: space-between;+ border-radius: 12px;+ overflow: hidden;+ background: var(--bg-card, #141414);+ transition: background 0.16s ease;+}++.mini-image-folder-card:hover .mini-image-folder-card-inner {+ background: var(--bg-card-hover, #1c1c1c);+}++.list.horizontal .mini-image-folder-card-inner {+ border-radius: 7px;+}++/* Mini Blue Gradient Viewport */+.mini-image-folder-viewport {+ position: relative;+ width: 100%;+ flex: 1;+ min-height: 0;+ background: linear-gradient(+ 115deg,+ #a8def5 0%,+ #288ef6 25%,+ #0b64f6 52%,+ #1b57f6 78%,+ #769cf5 100%+ );+ overflow: hidden;+ display: flex;+ align-items: center;+ justify-content: center;+ border-radius: 12px 12px 0 0;+}++.list.horizontal .mini-image-folder-viewport {+ border-radius: 7px 7px 0 0;+}++.mini-image-folder-thumb {+ position: relative;+ max-width: calc(100% - 20px);+ max-height: calc(100% - 20px);+ object-fit: contain;+ border-radius: 6px;+ z-index: 2;+ filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.55));+ transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), filter 0.22s ease;+ pointer-events: none;+}++.list.horizontal .mini-image-folder-thumb {+ max-width: calc(100% - 12px);+ max-height: calc(100% - 12px);+ border-radius: 4px;+ filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.5));+}++.mini-image-folder-card:hover .mini-image-folder-thumb {+ transform: scale(1.03) translateY(-1px);+ filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.65));+}++/* Mini Solid Black Curved Folder Flap */+.mini-image-folder-flap-wrap {+ position: relative;+ width: 100%;+ flex-shrink: 0;+ margin-top: -22px;+ z-index: 5;+}++.list.horizontal .mini-image-folder-flap-wrap {+ margin-top: -16px;+ flex-shrink: 0;+}++.mini-image-folder-flap-svg {+ position: absolute;+ top: 0;+ left: 0;+ width: 100%;+ height: 100%;+ pointer-events: none;+ z-index: 1;+}++.mini-image-folder-flap-svg path {+ fill: var(--bg-card, #141414);+ stroke: none;+ border: none;+ transition: fill 0.16s ease;+}++.mini-image-folder-card:hover .mini-image-folder-flap-svg path {+ fill: var(--bg-card-hover, #1c1c1c);+}++.mini-image-folder-flap-content {+ position: relative;+ z-index: 2;+ width: 100%;+ display: flex;+ flex-direction: column;+}++.mini-image-folder-flap-header {+ height: 24px;+}++.list.horizontal .mini-image-folder-flap-header {+ height: 14px;+}++.mini-image-folder-flap-footer {+ padding: 2px 10px 5px 10px;+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 6px;+}++.list.horizontal .mini-image-folder-flap-footer {+ padding: 0 6px 3px 6px;+ gap: 3px;+}++.mini-image-folder-meta {+ display: flex;+ align-items: center;+ gap: 5px;+ min-width: 0;+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+}++.list.horizontal .mini-image-folder-meta {+ gap: 3px;+}++.mini-image-folder-meta .kind-badge {+ font-size: calc(10.5px * var(--font-scale, 1));+ padding: 1px 5px;+}++.list.horizontal .mini-image-folder-meta .kind-badge {+ font-size: 8px;+ padding: 0 3px;+}++.mini-image-folder-source-name {+ font-size: calc(11.5px * var(--font-scale, 1));+ color: rgba(255, 255, 255, 0.85);+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+ font-weight: 500;+}++.list.horizontal .mini-image-folder-source-name {+ font-size: 8.5px;+ max-width: 52px;+}++.mini-image-folder-size {+ font-size: calc(10.5px * var(--font-scale, 1));+ color: rgba(255, 255, 255, 0.55);+ font-family: var(--font-mono);+ white-space: nowrap;+ flex-shrink: 0;+}++.list.horizontal .mini-image-folder-size {+ font-size: 8px;+}++/* Hover Action Pill for Mini Card (Expand, Copy, Ungroup) */+.mini-image-folder-actions {+ position: absolute;+ top: 6px;+ right: 6px;+ display: flex;+ align-items: center;+ gap: 3px;+ padding: 2px 4px;+ background: rgba(14, 14, 18, 0.94);+ border: 1px solid rgba(255, 255, 255, 0.2);+ border-radius: 999px;+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);+ opacity: 0;+ pointer-events: none;+ transform: scale(0.9) translateY(-1px);+ transition: opacity 0.14s ease, transform 0.14s ease;+ z-index: 10;+}++.list.horizontal .mini-image-folder-actions {+ top: 2px;+ right: 2px;+ padding: 1px 2px;+ gap: 1px;+}++.mini-image-folder-card:hover .mini-image-folder-actions,+.mini-image-folder-card:focus-within .mini-image-folder-actions {+ opacity: 1;+ pointer-events: auto;+ transform: scale(1) translateY(0);+}++.mini-image-folder-actions .act {+ width: 22px;+ height: 22px;+ display: flex;+ align-items: center;+ justify-content: center;+ background: transparent;+ border: none;+ border-radius: 4px;+ color: rgba(255, 255, 255, 0.9);+ cursor: pointer;+ padding: 0;+ transition: background 0.12s ease, color 0.12s ease;+}++.list.horizontal .mini-image-folder-actions .act {+ width: 16px;+ height: 16px;+}++.list.horizontal .mini-image-folder-actions .act > svg {+ width: 9px;+ height: 9px;+}++.mini-image-folder-actions .act:hover {+ background: rgba(255, 255, 255, 0.22);+ color: #ffffff;+}++.mini-image-folder-actions .act.danger:hover {+ background: rgba(239, 68, 68, 0.4);+ color: #f87171;+}++/* Folder Flap Sleeve - completely borderless */+.image-folder-flap-wrap {+ position: relative;+ width: 100%;+ flex-shrink: 0;+ margin-top: -26px; /* overlaps bottom of image frame */+ z-index: 5;+}++.image-folder-flap-svg {+ position: absolute;+ top: 0;+ left: 0;+ width: 100%;+ height: 100%;+ pointer-events: none;+ z-index: 1;+}++.image-folder-flap-svg path {+ fill: var(--bg-card, #141414);+ stroke: none;+ border: none;+ transition: fill 0.16s ease;+}++.item.is-image-folder-card:hover .image-folder-flap-svg path,+.item-main:hover .image-folder-flap-svg path {+ fill: var(--bg-card-hover, #1c1c1c);+}++.image-folder-flap-content {+ position: relative;+ z-index: 2;+ width: 100%;+ display: flex;+ flex-direction: column;+}++.image-folder-flap-header {+ height: 28px;+}++.image-folder-flap-footer {+ padding: 2px 12px 6px 12px;+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 8px;+ margin-top: auto;+}++.image-folder-meta {+ display: flex;+ align-items: center;+ gap: 4px;+ font-size: 11px;+ color: rgba(255, 255, 255, 0.5);+ font-weight: 500;+ letter-spacing: 0.01em;+ white-space: nowrap;+ overflow: hidden;+ text-overflow: ellipsis;+ min-width: 0;+}++.image-folder-source-name {+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+ min-width: 0;+ max-width: 105px;+ color: rgba(255, 255, 255, 0.45);+}+/* Floating Actions Pill */.actions {position: absolute;@@ -819,7 +1634,7 @@flex-direction: column;justify-content: center;align-items: center;- padding: 10px 16px 4px 16px;+ padding: 10px 16px 6px 16px;}.single-file-preview {@@ -845,16 +1660,16 @@}.single-file-hero svg {- width: 96px;- height: 96px;+ width: 120px;+ height: 120px;display: block;- filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.28));+ filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.42));transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;}.item-main:hover .single-file-hero svg {- transform: translateY(-2px) scale(1.03);- filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.38));+ transform: translateY(-3px) scale(1.04);+ filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.52));}.single-file-meta {@@ -868,8 +1683,8 @@}.single-file-name {- font-size: calc(13px * var(--font-scale, 1));- font-weight: 500;+ font-size: calc(13.5px * var(--font-scale, 1));+ font-weight: 550;color: var(--text-primary, #ffffff);line-height: 1.35;text-align: center;@@ -879,6 +1694,209 @@word-break: break-all;}+/* Flyout Sub-item Cards (feels identical to clipboard items) */+.item.flyout-subitem {+ margin-bottom: 0;+ cursor: grab;+ min-width: 0;+ width: 100%;+ box-sizing: border-box;+ background: var(--bg-card, #141414);+ border: none;+ border-radius: var(--radius-card, 18px);+ box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);+ transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), background 0.14s ease, box-shadow 0.18s ease;+ position: relative;+ overflow: hidden;+}++.item.flyout-subitem:hover {+ background: var(--bg-card-hover, #1c1c1c);+ transform: translateY(-2px);+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);+}++.item.flyout-subitem:active {+ cursor: grabbing;+ transform: scale(0.98);+}++.item.flyout-subitem.is-selected {+ background: rgba(255, 255, 255, 0.12);+ box-shadow: 0 0 0 1.5px #ffffff, 0 8px 24px rgba(0, 0, 0, 0.6);+}++.item.flyout-subitem.is-selected::before {+ opacity: 0;+}++.flyout-subitem .item-content {+ padding: 16px 12px 6px 12px;+ display: flex;+ flex-direction: column;+ align-items: center;+ justify-content: center;+ gap: 8px;+ width: 100%;+ box-sizing: border-box;+}++.flyout-subitem .single-file-hero {+ display: flex;+ align-items: center;+ justify-content: center;+ width: 100%;+}++.flyout-subitem .single-file-hero svg {+ width: 88px;+ height: 88px;+ display: block;+ filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));+ transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);+}++.flyout-subitem:hover .single-file-hero svg {+ transform: translateY(-2px) scale(1.04);+}++.flyout-subitem .single-file-meta {+ width: 100%;+ padding: 0 6px;+ box-sizing: border-box;+}++.flyout-subitem .single-file-name {+ font-size: 13px;+ font-weight: 550;+ line-height: 1.35;+ color: #ffffff;+ text-align: center;+ width: 100%;+ display: -webkit-box;+ -webkit-line-clamp: 2;+ -webkit-box-orient: vertical;+ overflow: hidden;+ text-overflow: ellipsis;+ word-break: normal;+ overflow-wrap: break-word;+}++.flyout-subitem .item-footer {+ width: 100%;+ box-sizing: border-box;+ padding: 6px 14px 10px 14px;+ background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.35) 100%);+ display: flex;+ align-items: center;+ justify-content: space-between;+}++.flyout-subitem .meta-size {+ font-size: 11px;+ color: rgba(255, 255, 255, 0.45);+ font-family: var(--font-ui);+ letter-spacing: 0.01em;+ font-weight: 500;+ white-space: nowrap;+}++.flyout-subitem .actions {+ position: absolute;+ top: 8px;+ right: 8px;+ display: flex;+ gap: 2px;+ padding: 2px 4px;+ background: rgba(16, 16, 16, 0.95);+ border: 1px solid rgba(255, 255, 255, 0.1);+ border-radius: 999px;+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.65);+ opacity: 0;+ transform: scale(0.94);+ pointer-events: none;+ transition: opacity 0.14s ease, transform 0.14s ease;+ z-index: 20;+}++.flyout-subitem:hover .actions {+ opacity: 1;+ transform: scale(1);+ pointer-events: auto;+}++.flyout-subitem .subitem-select-badge {+ position: absolute;+ top: 10px;+ left: 10px;+ width: 20px;+ height: 20px;+ border-radius: 6px;+ border: 1.5px solid rgba(255, 255, 255, 0.32);+ background: rgba(22, 22, 22, 0.85);+ display: flex;+ align-items: center;+ justify-content: center;+ cursor: pointer;+ z-index: 15;+ opacity: 0.85;+ transform: scale(1);+ box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);+ transition: opacity 0.14s ease, transform 0.14s ease, background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;+}++.flyout-subitem:hover .subitem-select-badge {+ opacity: 1;+ border-color: rgba(255, 255, 255, 0.45);+}++.flyout-subitem .subitem-select-badge:hover {+ opacity: 1;+ background: rgba(255, 255, 255, 0.18);+ border-color: rgba(255, 255, 255, 0.85);+ transform: scale(1.08);+ box-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);+}++.flyout-subitem .subitem-select-badge:active {+ transform: scale(0.92);+}++.flyout-subitem .subitem-select-badge.selected {+ opacity: 1;+ background: #ffffff;+ border-color: #ffffff;+ color: #000000;+ box-shadow: 0 2px 10px rgba(255, 255, 255, 0.3), 0 2px 6px rgba(0, 0, 0, 0.5);+}++.flyout-subitem .subitem-select-badge.selected:hover {+ background: #ffffff;+ border-color: #ffffff;+ transform: scale(1.08);+ box-shadow: 0 3px 12px rgba(255, 255, 255, 0.4), 0 2px 6px rgba(0, 0, 0, 0.5);+}++/* Single Hero Preview in Flyout */+.single-hero-card {+ width: 100%;+}+.single-hero-card .single-file-hero svg {+ width: 120px;+ height: 120px;+}+.single-hero-card .item-content {+ padding: 28px 20px 14px 20px;+}+.single-hero-card .single-file-name {+ font-size: 15px;+ font-weight: 600;+ -webkit-line-clamp: 3;+}+.single-hero-card .item-footer {+ padding: 8px 20px 14px 20px;+}+.bundle-more-label {color: var(--text-tertiary);font-size: calc(12px * var(--font-scale, 1));@@ -1121,7 +2139,7 @@flex-direction: column;justify-content: center;align-items: center;- padding: 6px 12px 2px 12px;+ padding: 4px 10px 2px 10px;}.list.horizontal .single-file-preview {@@ -1135,30 +2153,39 @@}.list.horizontal .single-file-hero svg {- width: 54px;- height: 54px;- filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.24));+ width: 88px;+ height: 88px;+ filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.38));+ transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;+}++.list.horizontal .item-main:hover .single-file-hero svg {+ transform: translateY(-2px) scale(1.03);+ filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5));}.list.horizontal .single-file-name {- font-size: calc(11.5px * var(--font-scale, 1));- line-height: 1.35;+ font-size: calc(12px * var(--font-scale, 1));+ font-weight: 550;+ line-height: 1.3;text-align: center;width: 100%;+ max-width: 100%;+ padding: 0 4px;overflow: hidden;text-overflow: ellipsis;word-break: break-all;}.list.horizontal .bundle-stack-large {- height: 75px;+ height: 90px;}.list.horizontal .bundle-stack-icon-item {- width: 80px;- height: 80px;- margin-top: -40px;- margin-left: -40px;+ width: 88px;+ height: 88px;+ margin-top: -44px;+ margin-left: -44px;}.list.horizontal .item.is-image .item-content,@@ -1215,6 +2242,169 @@max-width: 100%;}+/* Horizontal Dock Single Image Folder Card */+.list.horizontal .item.is-image-folder-card {+ width: 210px;+ min-width: 210px;+ max-width: 210px;+ height: 146px;+ padding: 5px;+ box-sizing: border-box;+}++.list.horizontal .item.is-image-folder-card .item-main {+ height: 100%;+}++.list.horizontal .image-folder-card-inner {+ height: 100%;+ display: flex;+ flex-direction: column;+ justify-content: space-between;+ border-radius: calc(var(--radius-card, 18px) - 5px);+ overflow: hidden;+ background: var(--bg-card, #141414);+}++.list.horizontal .item.is-image-folder-card:hover .image-folder-card-inner,+.list.horizontal .item-main:hover .image-folder-card-inner {+ background: var(--bg-card-hover, #1c1c1c);+}++.list.horizontal .image-folder-viewport {+ flex: 1;+ height: 100%;+ min-height: 0;+ border-radius: calc(var(--radius-card, 18px) - 5px) calc(var(--radius-card, 18px) - 5px) 0 0;+}++.list.horizontal .image-folder-thumb {+ max-width: calc(100% - 16px);+ max-height: calc(100% - 20px);+}++.list.horizontal .image-folder-flap-wrap {+ margin-top: -24px;+ flex-shrink: 0;+ width: 100%;+}++.list.horizontal .image-folder-flap-header {+ height: 24px;+}++.list.horizontal .image-folder-flap-footer {+ padding: 1px 10px 5px 10px;+ margin-top: auto;+}++.list.horizontal .image-folder-meta {+ font-size: calc(10.5px * var(--font-scale, 1));+ gap: 3px;+}++.list.horizontal .image-folder-source-name {+ max-width: 80px;+}++.list.horizontal .image-folder-stack-deck {+ margin-top: -6px;+}++.list.horizontal .image-folder-stack-item {+ width: 108px;+ height: 70px;+ border-radius: 6px;+ border: none;+ box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55);+}++.list.horizontal .image-folder-stack-deck[data-count="2"] .image-folder-stack-item.pos-0 {+ transform: translate(-4px, 1px) rotate(-4.5deg) scale(1);+}+.list.horizontal .image-folder-stack-deck[data-count="2"] .image-folder-stack-item.pos-1 {+ transform: translate(8px, -2px) rotate(8.5deg) scale(0.96);+}+.list.horizontal .item.is-image-folder-card:hover .image-folder-stack-deck[data-count="2"] .image-folder-stack-item.pos-0,+.list.horizontal .item-main:hover .image-folder-stack-deck[data-count="2"] .image-folder-stack-item.pos-0 {+ transform: translate(-7px, 0px) rotate(-7deg) scale(1.03);+}+.list.horizontal .item.is-image-folder-card:hover .image-folder-stack-deck[data-count="2"] .image-folder-stack-item.pos-1,+.list.horizontal .item-main:hover .image-folder-stack-deck[data-count="2"] .image-folder-stack-item.pos-1 {+ transform: translate(12px, -4px) rotate(13deg) scale(0.98);+}++.list.horizontal .image-folder-stack-deck[data-count="3"] .image-folder-stack-item.pos-0 {+ transform: translate(-1px, 2px) rotate(-1.5deg) scale(1);+}+.list.horizontal .image-folder-stack-deck[data-count="3"] .image-folder-stack-item.pos-1 {+ transform: translate(9px, -2px) rotate(8deg) scale(0.96);+}+.list.horizontal .image-folder-stack-deck[data-count="3"] .image-folder-stack-item.pos-2 {+ transform: translate(-10px, -4px) rotate(-9.5deg) scale(0.92);+}+.list.horizontal .item.is-image-folder-card:hover .image-folder-stack-deck[data-count="3"] .image-folder-stack-item.pos-0,+.list.horizontal .item-main:hover .image-folder-stack-deck[data-count="3"] .image-folder-stack-item.pos-0 {+ transform: translate(-1px, 0px) rotate(-2deg) scale(1.03);+}+.list.horizontal .item.is-image-folder-card:hover .image-folder-stack-deck[data-count="3"] .image-folder-stack-item.pos-1,+.list.horizontal .item-main:hover .image-folder-stack-deck[data-count="3"] .image-folder-stack-item.pos-1 {+ transform: translate(14px, -4px) rotate(14deg) scale(0.98);+}+.list.horizontal .item.is-image-folder-card:hover .image-folder-stack-deck[data-count="3"] .image-folder-stack-item.pos-2,+.list.horizontal .item-main:hover .image-folder-stack-deck[data-count="3"] .image-folder-stack-item.pos-2 {+ transform: translate(-15px, -6px) rotate(-15deg) scale(0.94);+}++.list.horizontal .image-folder-stack-deck[data-count="4"] .image-folder-stack-item.pos-0 {+ transform: translate(1px, 2px) rotate(2deg) scale(1);+}+.list.horizontal .image-folder-stack-deck[data-count="4"] .image-folder-stack-item.pos-1 {+ transform: translate(-7px, -1px) rotate(-6deg) scale(0.96);+}+.list.horizontal .image-folder-stack-deck[data-count="4"] .image-folder-stack-item.pos-2 {+ transform: translate(12px, -3px) rotate(11deg) scale(0.92);+}+.list.horizontal .image-folder-stack-deck[data-count="4"] .image-folder-stack-item.pos-3 {+ transform: translate(-14px, -6px) rotate(-14deg) scale(0.88);+}+.list.horizontal .item.is-image-folder-card:hover .image-folder-stack-deck[data-count="4"] .image-folder-stack-item.pos-0,+.list.horizontal .item-main:hover .image-folder-stack-deck[data-count="4"] .image-folder-stack-item.pos-0 {+ transform: translate(3px, 0px) rotate(3deg) scale(1.03);+}+.list.horizontal .item.is-image-folder-card:hover .image-folder-stack-deck[data-count="4"] .image-folder-stack-item.pos-1,+.list.horizontal .item-main:hover .image-folder-stack-deck[data-count="4"] .image-folder-stack-item.pos-1 {+ transform: translate(-10px, -2px) rotate(-9deg) scale(0.98);+}+.list.horizontal .item.is-image-folder-card:hover .image-folder-stack-deck[data-count="4"] .image-folder-stack-item.pos-2,+.list.horizontal .item-main:hover .image-folder-stack-deck[data-count="4"] .image-folder-stack-item.pos-2 {+ transform: translate(17px, -6px) rotate(17deg) scale(0.95);+}+.list.horizontal .item.is-image-folder-card.is-expanded .image-folder-flap-wrap {+ margin-top: -18px;+ flex-shrink: 0;+ width: 100%;+}++.list.horizontal .item.is-image-folder-card.is-expanded .image-folder-flap-header {+ height: 18px;+}++.list.horizontal .item.is-image-folder-card.is-expanded .image-folder-flap-footer {+ padding: 0 8px 3px 8px;+ margin-top: auto;+}++.list.horizontal .item.is-image-folder-card.is-expanded .image-folder-meta {+ font-size: 9.5px;+ gap: 3px;+}++.list.horizontal .item.is-image-folder-card.is-expanded .meta-time {+ font-size: 9.5px;+}++/* ------------------------------------------------------------------ *//* Horizontal Expanded Stack & Sub-Item Tile Styling *//* ------------------------------------------------------------------ */diff --git a/tests/stackFeatures.test.ts b/tests/stackFeatures.test.tsindex 1ce596e..18f6b11 100644--- a/tests/stackFeatures.test.ts+++ b/tests/stackFeatures.test.ts@@ -17,7 +17,7 @@ describe('Stack Features: SVG Folder Silhouette, Sizing, Horizontal Expansion &it('ClipboardItem.tsx uses FileStackPhoto for image stacks with responsive photoSize', () => {const src = read('src/components/ClipboardItem.tsx')expect(src).toContain('<FileStackPhoto src={img.preview} width={photoSize} height={photoSize} />')- expect(src).toContain('photoSize = isHorizontal ? 76 : 124')+ expect(src).toContain('photoSize = isHorizontal ? 88 : 132')expect(src).toContain('HorizontalBundleExpanded')})