forked from 77media/video-flow
更新 脚本助手描述
This commit is contained in:
parent
ed5e9196a4
commit
5b70c642a7
@ -18,6 +18,7 @@ import {
|
|||||||
Sparkles,
|
Sparkles,
|
||||||
Settings,
|
Settings,
|
||||||
MoreHorizontal,
|
MoreHorizontal,
|
||||||
|
WandSparkles,
|
||||||
} from "lucide-react";
|
} from "lucide-react";
|
||||||
import {
|
import {
|
||||||
Dropdown,
|
Dropdown,
|
||||||
@ -27,7 +28,6 @@ import {
|
|||||||
Popconfirm,
|
Popconfirm,
|
||||||
Image,
|
Image,
|
||||||
Popover,
|
Popover,
|
||||||
Switch,
|
|
||||||
} from "antd";
|
} from "antd";
|
||||||
import { UploadOutlined } from "@ant-design/icons";
|
import { UploadOutlined } from "@ant-design/icons";
|
||||||
import { StoryTemplateEntity } from "@/app/service/domain/Entities";
|
import { StoryTemplateEntity } from "@/app/service/domain/Entities";
|
||||||
@ -538,23 +538,27 @@ export function ChatInputBox({ noData }: { noData: boolean }) {
|
|||||||
<div className="hidden sm:block w-px h-4 bg-white/[0.20]"></div>
|
<div className="hidden sm:block w-px h-4 bg-white/[0.20]"></div>
|
||||||
|
|
||||||
{/* 剧本扩展开关 */}
|
{/* 剧本扩展开关 */}
|
||||||
<Tooltip title="Activate AI Co-writer" placement="top" trigger={isDesktop ? "hover" : "click"}>
|
<Tooltip title="AI Story Copilot" placement="top" trigger={isDesktop ? "hover" : "click"}>
|
||||||
<div data-alt="config-expansion-mode" className="flex items-center gap-1 px-1">
|
<button
|
||||||
{/* 仅在未选中时显示背景色,避免覆盖选中态 */}
|
data-alt="config-expansion-mode"
|
||||||
<div className={`${configOptions.expansion_mode ? 'bg-transparent' : 'bg-white/40'} rounded-full transition-colors flex`}>
|
className={`flex items-center gap-1 px-2 py-1 text-xs rounded-full transition-all duration-200 ${
|
||||||
<Switch
|
configOptions.videoDuration === '8s'
|
||||||
size="small"
|
? 'opacity-40 cursor-not-allowed bg-transparent text-white/[0.50]'
|
||||||
checkedChildren="On"
|
: configOptions.expansion_mode
|
||||||
unCheckedChildren="Off"
|
? 'bg-white/[0.24] text-white cursor-pointer hover:bg-white/[0.30]'
|
||||||
checked={configOptions.expansion_mode}
|
: 'bg-transparent text-white/[0.50] cursor-pointer hover:bg-white/[0.08]'
|
||||||
|
}`}
|
||||||
disabled={configOptions.videoDuration === '8s'}
|
disabled={configOptions.videoDuration === '8s'}
|
||||||
onChange={(checked: boolean) => onConfigChange('expansion_mode', checked)}
|
onClick={() => {
|
||||||
/>
|
if (configOptions.videoDuration !== '8s') {
|
||||||
</div>
|
onConfigChange('expansion_mode', !configOptions.expansion_mode);
|
||||||
<span className={`text-xs text-white hidden sm:inline`}>
|
}
|
||||||
Script Assistant
|
}}
|
||||||
</span>
|
>
|
||||||
</div>
|
<WandSparkles className="w-4 h-4" />
|
||||||
|
<span className="hidden sm:inline">AutoScript</span>
|
||||||
|
<span className="sm:hidden">AutoScript</span>
|
||||||
|
</button>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
|
||||||
{/* 分隔线 */}
|
{/* 分隔线 */}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user