diff --git a/public/manifest-dev.json b/public/manifest-dev.json index a50d25d..dbd7fc8 100644 --- a/public/manifest-dev.json +++ b/public/manifest-dev.json @@ -22,7 +22,7 @@ "meta": { "avatar": "https://cdn.discordapp.com/icons/662267976984297473/39128f6c9fc33f4c95a27d4c601ad7db.webp", "tags": ["midjourney", "draw"], - "title": "Midjourney", + "title": "Midjourney DEV", "description": "midjourney plugin" }, "settings": { diff --git a/src/features/Input.tsx b/src/features/Input.tsx index 8370af4..1aae3da 100644 --- a/src/features/Input.tsx +++ b/src/features/Input.tsx @@ -1,6 +1,7 @@ import { TextArea } from '@lobehub/ui'; import { Button, Flex } from 'antd'; import { memo } from 'react'; +import { Flexbox } from 'react-layout-kit'; import { useStore } from '@/store'; @@ -23,18 +24,11 @@ const PromptInput = memo(() => { type={'block'} value={prompts} /> - + - - + ); }); diff --git a/src/features/Preview/Actions.tsx b/src/features/Preview/Actions.tsx index 8deaf34..2666b30 100644 --- a/src/features/Preview/Actions.tsx +++ b/src/features/Preview/Actions.tsx @@ -29,6 +29,7 @@ const Actions = memo<{ setMask: (mask: boolean) => void }>(({ setMask }) => { const content = useMemo(() => { switch (currentTask?.action) { case 'VARIATION': + case 'REROLL': case 'IMAGINE': { return ; } @@ -36,9 +37,6 @@ const Actions = memo<{ setMask: (mask: boolean) => void }>(({ setMask }) => { break; } - case 'REROLL': { - break; - } case 'DESCRIBE': { break; } diff --git a/src/features/Preview/ImagineAction.tsx b/src/features/Preview/ImagineAction.tsx index ea165ce..6e254e3 100644 --- a/src/features/Preview/ImagineAction.tsx +++ b/src/features/Preview/ImagineAction.tsx @@ -1,5 +1,7 @@ +import { Icon } from '@lobehub/ui'; import { Button } from 'antd'; import { createStyles } from 'antd-style'; +import { LucideScaling, LucideWand, RefreshCwIcon } from 'lucide-react'; import { memo } from 'react'; import { Flexbox } from 'react-layout-kit'; @@ -44,6 +46,8 @@ const useStyles = createStyles(({ css, cx }) => { left: 50%; transform: translateX(-50%); + opacity: 0; + transition: opacity 0.3s; `, }; @@ -58,8 +62,7 @@ interface ImageActionProps { const ImageAction = memo(({ setMask, id }) => { const { styles, cx } = useStyles(); - const [inLobeChat, createSimpleChangeTask, isSuccess] = useStore((s) => [ - s.inLobeChat, + const [createSimpleChangeTask, isSuccess] = useStore((s) => [ s.createChangeTask, midjourneySelectors.getTaskById(id)(s)?.status === 'SUCCESS', ]); @@ -79,6 +82,7 @@ const ImageAction = memo(({ setMask, id }) => {