diff --git a/src/common/app.theme.ts b/src/common/app.theme.ts index bacb49e22..1b9885a2a 100644 --- a/src/common/app.theme.ts +++ b/src/common/app.theme.ts @@ -3,6 +3,8 @@ import createCache from '@emotion/cache'; import { Inter, JetBrains_Mono } from 'next/font/google'; import { extendTheme } from '@mui/joy'; +import { animationEnterModal } from '~/common/util/animUtils'; + // Definitions export type UIComplexityMode = 'minimal' | 'pro' | 'extra'; @@ -116,12 +118,17 @@ export const createAppTheme = (uiComplexityMinimal: boolean) => extendTheme({ // }, // }, - JoyModal: !uiComplexityMinimal ? undefined : { + JoyModal: { styleOverrides: { - backdrop: { + backdrop: !uiComplexityMinimal ? undefined : { backdropFilter: 'none', // backdropFilter: 'blur(2px)', }, + root: uiComplexityMinimal ? undefined : { + '& .agi-animate-enter': { + animation: `${animationEnterModal} 0.2s`, + }, + }, }, }, diff --git a/src/common/components/modals/GoodModal.tsx b/src/common/components/modals/GoodModal.tsx index a6ce530a6..0e1a9bdcb 100644 --- a/src/common/components/modals/GoodModal.tsx +++ b/src/common/components/modals/GoodModal.tsx @@ -13,6 +13,7 @@ export function GoodModal(props: { strongerTitle?: boolean, noTitleBar?: boolean, dividers?: boolean, + animateEnter?: boolean, open: boolean, onClose?: () => void, hideBottomClose?: boolean, @@ -36,6 +37,7 @@ export function GoodModal(props: { > Configure AI Models} + open onClose={optimaActions().closeModels} + animateEnter={llmCount === 0} startButton={ multiService ? setShowAllServices(all => !all)} /> : undefined } - open onClose={optimaActions().closeModels} sx={{ // forces some shrinkage of the contents (ModelsList) overflow: 'auto',