mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-06-30 10:13:28 +00:00
parent
e2253bc5ba
commit
e1ec45bf5e
|
@ -12,6 +12,20 @@ import {
|
|||
Icon as PhosphorIcon,
|
||||
Snowflake
|
||||
} from '@phosphor-icons/react';
|
||||
import clsx from 'clsx';
|
||||
import dayjs from 'dayjs';
|
||||
import {
|
||||
forwardRef,
|
||||
useCallback,
|
||||
useEffect,
|
||||
useMemo,
|
||||
useState,
|
||||
type HTMLAttributes,
|
||||
type ReactNode
|
||||
} from 'react';
|
||||
import { useLocation } from 'react-router';
|
||||
import { Link as NavLink } from 'react-router-dom';
|
||||
import Sticky from 'react-sticky-el';
|
||||
import {
|
||||
FilePath,
|
||||
FilePathForFrontend,
|
||||
|
@ -28,20 +42,6 @@ import {
|
|||
type ExplorerItem
|
||||
} from '@sd/client';
|
||||
import { Button, Divider, DropdownMenu, toast, Tooltip, tw } from '@sd/ui';
|
||||
import clsx from 'clsx';
|
||||
import dayjs from 'dayjs';
|
||||
import {
|
||||
forwardRef,
|
||||
useCallback,
|
||||
useEffect,
|
||||
useMemo,
|
||||
useState,
|
||||
type HTMLAttributes,
|
||||
type ReactNode
|
||||
} from 'react';
|
||||
import { useLocation } from 'react-router';
|
||||
import { Link as NavLink } from 'react-router-dom';
|
||||
import Sticky from 'react-sticky-el';
|
||||
import { LibraryIdParamsSchema } from '~/app/route-schemas';
|
||||
import { Folder, Icon } from '~/components';
|
||||
import { useLocale, useZodRouteParams } from '~/hooks';
|
||||
|
@ -102,11 +102,7 @@ export const Inspector = forwardRef<HTMLDivElement, Props>(
|
|||
const { t } = useLocale();
|
||||
return (
|
||||
<div ref={ref} style={{ width: INSPECTOR_WIDTH, ...style }} {...props}>
|
||||
<Sticky
|
||||
scrollElement=".explorer-inspector-scroll"
|
||||
stickyClassName="!top-[40px]"
|
||||
topOffset={-40}
|
||||
>
|
||||
<Sticky stickyClassName="!top-[40px]" topOffset={-40}>
|
||||
{showThumbnail && (
|
||||
<div className="relative mb-2 flex aspect-square items-center justify-center px-2">
|
||||
{isNonEmpty(selectedItems) ? (
|
||||
|
@ -526,7 +522,6 @@ const MultiItemMetadata = ({ items }: { items: ExplorerItem[] }) => {
|
|||
const onlyNonIndexed = metadata.types.has('NonIndexedPath') && metadata.types.size === 1;
|
||||
const filesSize = humanizeSize(metadata.size);
|
||||
|
||||
|
||||
return (
|
||||
<>
|
||||
<MetaContainer>
|
||||
|
|
|
@ -24,13 +24,13 @@ interface JobProps {
|
|||
}
|
||||
|
||||
const JobIcon: Record<string, Icon> = {
|
||||
indexer: Folder,
|
||||
media_processor: Image,
|
||||
file_identifier: Fingerprint,
|
||||
file_copier: Copy,
|
||||
file_deleter: Trash,
|
||||
file_cutter: Scissors,
|
||||
object_validator: Fingerprint
|
||||
Indexer: Folder,
|
||||
MediaProcessor: Image,
|
||||
FileIdentifier: Fingerprint,
|
||||
FileCopier: Copy,
|
||||
FileDeleter: Trash,
|
||||
FileCutter: Scissors,
|
||||
ObjectValidator: Fingerprint
|
||||
};
|
||||
|
||||
function Job({ job, className, isChild, progress }: JobProps) {
|
||||
|
|
Loading…
Reference in a new issue