mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-18 06:49:50 +02:00
Blur backdrop
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import classnames from 'classnames';
|
import classnames from 'classnames';
|
||||||
import FocusTrap from 'focus-trap-react';
|
import FocusTrap from 'focus-trap-react';
|
||||||
import type { ReactNode } from 'react';
|
|
||||||
import { motion } from 'framer-motion';
|
import { motion } from 'framer-motion';
|
||||||
|
import type { ReactNode } from 'react';
|
||||||
import { Portal } from './Portal';
|
import { Portal } from './Portal';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
@@ -33,7 +33,7 @@ export function Overlay({ zIndex = 30, open, onClose, portalName, children }: Pr
|
|||||||
<div
|
<div
|
||||||
aria-hidden
|
aria-hidden
|
||||||
onClick={onClose}
|
onClick={onClose}
|
||||||
className="absolute inset-0 bg-gray-600/60 dark:bg-black/50"
|
className="absolute inset-0 bg-gray-600/30 dark:bg-black/30 backdrop-blur-sm"
|
||||||
/>
|
/>
|
||||||
{/* Add region to still be able to drag the window */}
|
{/* Add region to still be able to drag the window */}
|
||||||
<div data-tauri-drag-region className="absolute top-0 left-0 right-0 h-md" />
|
<div data-tauri-drag-region className="absolute top-0 left-0 right-0 h-md" />
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ export function Dialog({
|
|||||||
className,
|
className,
|
||||||
'relative bg-gray-50 pointer-events-auto',
|
'relative bg-gray-50 pointer-events-auto',
|
||||||
'max-h-[80vh] p-5 rounded-lg overflow-auto',
|
'max-h-[80vh] p-5 rounded-lg overflow-auto',
|
||||||
'dark:border border-gray-200 shadow-md shadow-black/10',
|
'dark:border border-highlight shadow shadow-black/10',
|
||||||
size === 'sm' && 'w-[25rem]',
|
size === 'sm' && 'w-[25rem]',
|
||||||
size === 'md' && 'w-[45rem]',
|
size === 'md' && 'w-[45rem]',
|
||||||
size === 'full' && 'w-[80vw]',
|
size === 'full' && 'w-[80vw]',
|
||||||
|
|||||||
Reference in New Issue
Block a user