Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions frontend/src/components/Media/MediaViewControls.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React from 'react';
import { Info, Folder, Heart, Play, Pause, X } from 'lucide-react';
import { Info, Heart, Play, Pause, X } from 'lucide-react';

interface MediaViewControlsProps {
showInfo: boolean;
onToggleInfo: () => void;
onToggleFavourite: () => void;
onOpenFolder: () => Promise<void>;
// onOpenFolder: () => Promise<void>; // [Disabled] Uncomment when Open Folder is re-enabled
isFavourite: boolean;
isSlideshowActive: boolean;
onToggleSlideshow: () => void;
Expand All @@ -17,7 +17,6 @@ export const MediaViewControls: React.FC<MediaViewControlsProps> = ({
showInfo,
onToggleInfo,
onToggleFavourite,
onOpenFolder,
isFavourite,
isSlideshowActive,
onToggleSlideshow,
Expand All @@ -37,6 +36,7 @@ export const MediaViewControls: React.FC<MediaViewControlsProps> = ({
<Info className="h-5 w-5" />
</button>

{/* Hidden until revealItemInDir from @tauri-apps/plugin-opener is implemented
<button
onClick={onOpenFolder}
className="cursor-pointer rounded-full bg-black/50 p-2.5 text-white/90 transition-all duration-200 hover:bg-black/20 hover:text-white hover:shadow-lg"
Expand All @@ -45,6 +45,7 @@ export const MediaViewControls: React.FC<MediaViewControlsProps> = ({
>
<Folder className="h-5 w-5" />
</button>
*/}
<button
onClick={onToggleFavourite}
className={`cursor-pointer rounded-full p-2.5 text-white transition-all duration-300 ${
Expand Down