mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-05-05 22:03:16 -04:00
more style tweaks
This commit is contained in:
@@ -99,11 +99,7 @@ const SearchBar = forwardRef<HTMLInputElement, DefaultProps>((props, forwardedRe
|
||||
{...searchField}
|
||||
/>
|
||||
|
||||
<div
|
||||
className={clsx(
|
||||
'space-x-1 absolute top-[1px] right-1 peer-focus:invisible pointer-events-none'
|
||||
)}
|
||||
>
|
||||
<div className={clsx('space-x-1 absolute right-1 peer-focus:invisible pointer-events-none')}>
|
||||
{platform === 'browser' ? (
|
||||
<Shortcut chars="⌘F" aria-label={'Press Command-F to focus search bar'} />
|
||||
) : os === 'macOS' ? (
|
||||
|
||||
@@ -57,7 +57,7 @@ function elapsed(seconds: number) {
|
||||
return new Date(seconds * 1000).toUTCString().match(/(\d\d:\d\d:\d\d)/)?.[0];
|
||||
}
|
||||
|
||||
const HeaderContainer = tw.div`z-20 flex items-center w-full h-10 px-2 border-b border-app-line rounded-t-md bg-app-box`;
|
||||
const HeaderContainer = tw.div`z-20 flex items-center w-full h-10 px-2 border-b border-app-line rounded-t-md bg-app-selected`;
|
||||
|
||||
export function JobsManager() {
|
||||
const runningJobs = useLibraryQuery(['jobs.getRunning']);
|
||||
|
||||
@@ -13,9 +13,8 @@ export const Shortcut: React.FC<ShortcutProps> = (props) => {
|
||||
<kbd
|
||||
className={clsx(
|
||||
`px-1 border border-b-2`,
|
||||
`rounded-lg text-xs font-bold`,
|
||||
`text-gray-400 bg-gray-200 border-gray-300`,
|
||||
`dark:text-gray-400 dark:bg-transparent dark:border-transparent`,
|
||||
`rounded-md text-xs font-bold`,
|
||||
`border-app-line dark:border-transparent`,
|
||||
className
|
||||
)}
|
||||
{...rest}
|
||||
|
||||
@@ -9,16 +9,6 @@ interface Props extends DropdownMenu.MenuContentProps {
|
||||
disabled?: boolean;
|
||||
}
|
||||
|
||||
const MENU_CLASSES = `
|
||||
flex flex-col
|
||||
min-w-[11rem] z-50 m-2 space-y-1
|
||||
select-none cursor-default rounded-lg
|
||||
text-left text-sm text-ink
|
||||
bg-app-overlay/90 backdrop-blur
|
||||
border border-app-line
|
||||
shadow-2xl shadow-black/40
|
||||
`;
|
||||
|
||||
export const OverlayPanel = ({
|
||||
trigger,
|
||||
children,
|
||||
@@ -50,7 +40,19 @@ export const OverlayPanel = ({
|
||||
show && (
|
||||
<DropdownMenu.Portal forceMount>
|
||||
<DropdownMenu.Content forceMount asChild>
|
||||
<animated.div className={clsx(MENU_CLASSES, className)} style={styles}>
|
||||
<animated.div
|
||||
className={clsx(
|
||||
'flex flex-col',
|
||||
'min-w-[11rem] z-50 m-2 space-y-1',
|
||||
'select-none cursor-default rounded-lg',
|
||||
'text-left text-sm text-ink',
|
||||
'bg-app-overlay/90 backdrop-blur',
|
||||
// 'border border-app-overlay',
|
||||
'shadow-2xl shadow-black/60 ',
|
||||
className
|
||||
)}
|
||||
style={styles}
|
||||
>
|
||||
{children}
|
||||
</animated.div>
|
||||
</DropdownMenu.Content>
|
||||
|
||||
@@ -53,7 +53,7 @@ export function SelectOption(props: PropsWithChildren<{ value: string }>) {
|
||||
className={clsx(
|
||||
'relative flex items-center pl-6 px-1 py-0.5 pr-4 text-xs',
|
||||
'rounded font-sm cursor-pointer select-none text-ink',
|
||||
'focus:outline-none radix-disabled:opacity-50 hover:bg-accent '
|
||||
'focus:outline-none hover:text-white radix-disabled:opacity-50 hover:bg-accent '
|
||||
)}
|
||||
value={props.value}
|
||||
>
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
--color-app-overlay: var(--light-hue), 5%, 100%;
|
||||
--color-app-input: var(--light-hue), 5%, 100%;
|
||||
--color-app-focus: var(--light-hue), 5%, 98%;
|
||||
--color-app-line: var(--light-hue), 5%, 89%;
|
||||
--color-app-line: var(--light-hue), 5%, 90%;
|
||||
--color-app-button: var(--light-hue), 5%, 100%;
|
||||
--color-app-divider: var(--light-hue), 5%, 80%;
|
||||
--color-app-selected: var(--light-hue), 5%, 93%;
|
||||
|
||||
Reference in New Issue
Block a user