feat(short-drama-agent-front): 支持母版复用并优化生成交互

This commit is contained in:
GJ committed 2026-10-12 15:22:03 +08:00
1 parent 49fb9c7a27
commit ee5e49957a
28 files changed
+634 -326

No files matched your search

+2 -2
View File
@@ -1,9 +1,9 @@
/**
* 按 260px 候选卡片计算弹窗宽度,每行最多五项,并预留列间距和内边距。
* 按 260px 候选卡片计算弹窗宽度,每行最多五项,并预留列间距及公共弹窗左右各 20px 内边距。
* @param count 当前候选数量
* @returns 弹窗期望宽度,单位为像素,实际宽度由公共弹窗适配视口
*/
export function candidateDialogWidth(count: number): number {
const columns = Math.max(1, Math.min(5, count))
return columns * 260 + (columns - 1) * 12 + 48
return columns * 260 + (columns - 1) * 12 + 40
}