fix: Add onSelect click handler to ribbon view rows
Ribbon view was missing the onClick handler that opens the detail panel. Tile view had it; ribbon view did not. Now both views open the slide-out panel when clicking a clip row/card.
This commit is contained in:
1 parent
5868be5f93
commit
3c6a5d1a84
1 file changed
+2
-1
@@ -173,7 +173,8 @@ export default function Gallery({ clips, onPlay, onDelete, onRename, onSelect, o
|
||||
{paged.map((clip) => (
|
||||
<div
|
||||
key={clip.id}
|
||||
className={`px-5 py-4 flex items-center gap-4 hover:bg-white/5 transition-colors ${
|
||||
onClick={() => onSelect(clip)}
|
||||
className={`px-5 py-4 flex items-center gap-4 hover:bg-white/5 transition-colors cursor-pointer ${
|
||||
currentClipId === clip.id ? 'bg-white/5' : ''
|
||||
}`}
|
||||
>
|
||||
|
||||
Reference in new issue
Block a user