diff --git a/interface/app/$libraryId/Explorer/FilePath/Thumb.tsx b/interface/app/$libraryId/Explorer/FilePath/Thumb.tsx index 685cb939a..8e49083db 100644 --- a/interface/app/$libraryId/Explorer/FilePath/Thumb.tsx +++ b/interface/app/$libraryId/Explorer/FilePath/Thumb.tsx @@ -42,6 +42,7 @@ export interface ThumbProps { mediaControls?: boolean; pauseVideo?: boolean; className?: string; + frameClassName?: string; childClassName?: string | ((type: ThumbType | `${ThumbType}`) => string | undefined); } @@ -62,6 +63,7 @@ export const FileThumb = memo((props: ThumbProps) => { const childClassName = 'max-h-full max-w-full object-contain'; const frameClassName = clsx( 'rounded-sm border-2 border-app-line bg-app-darkBox', + props.frameClassName, isDark ? classes.checkers : classes.checkersLight ); diff --git a/interface/app/$libraryId/Explorer/OptionsPanel.tsx b/interface/app/$libraryId/Explorer/OptionsPanel.tsx index 7bd33b294..fd086d6c2 100644 --- a/interface/app/$libraryId/Explorer/OptionsPanel.tsx +++ b/interface/app/$libraryId/Explorer/OptionsPanel.tsx @@ -1,4 +1,5 @@ import { RadixCheckbox, Select, SelectOption, Slider, tw, z } from '@sd/ui'; +import { getExplorerLayoutStore, useExplorerLayoutStore } from '~/../packages/client/src'; import { SortOrderSchema } from '~/app/route-schemas'; import { useExplorerContext } from './Context'; @@ -15,6 +16,7 @@ const Subheading = tw.div`text-ink-dull mb-1 text-xs font-medium`; export default () => { const explorerStore = useExplorerStore(); const explorer = useExplorerContext(); + const layoutStore = useExplorerLayoutStore(); const settings = explorer.useSettingsSnapshot(); @@ -117,44 +119,58 @@ export default () => { )} -