Yan
|
369857bc63
|
feat(result-modal): smart actions + mobile-safe layout
Result preview modal redesigned:
Smart action system:
- System auto-recommends the best primary action based on mode + content
- mode=replace → '替换选中内容'
- mode=insert → '插入到光标位置' + optional '保存为新笔记'
- mode=append → '追加到文档末尾' + '保存为新笔记'
- mode=show → auto-detects:
- Content has checkboxes → '保存为执行计划' (→ Knowledge/Plans/)
- Content looks like concept → '创建为概念页'
- Default → '保存为新笔记' (→ Knowledge/Notes/)
- Secondary actions: max 2, context-dependent
- Always available: '重新生成' + '关闭'
- '复制到剪贴板' as secondary for replace/insert
Mobile fix:
- Modal uses flex column layout with max-height: 80vh
- Preview area: flex: 1, scrollable, capped at 55vh (40vh on mobile)
- Action bar: flex-shrink: 0, fixed at bottom, never hidden
- Mobile breakpoint (600px): buttons wrap full-width, equal sizing
New save targets (auto-routed, user doesn't choose directories):
- Knowledge/Notes/ for general AI outputs
- Knowledge/Plans/ for content with checkboxes
- Knowledge/Concepts/ for concept-like content (via existing flow)
|
2026-05-20 22:45:35 +08:00 |
|