fix(预览): 优化LPW外层响应式宽度与图片Mermaid自适应并重构批注展示 - #5
Merged
Merged
Conversation
- 新增 Model 与 Provider 专属 Master-Detail 双栏工作台,彻底消灭大表单局促弹窗与遮罩 - 重构项目创建与编辑表单,移除硬编码路径强依赖,升级为 Tag 胶囊列表管理 - 项目抽屉支持查看概览与在位编辑双模式无缝切换,列表编辑按钮直接联动右侧抽屉 - 简化系统设置路由状态,移除冗余弹窗与键盘监听逻辑
- 重构 Pin、问答、预览、即时页面四大业务模块,对齐静烛台账与在位抽屉交互 - 收敛控制台设置中心,SettingsSidebar 统一纳管个人资料/密钥/空间并支持来源原路返回 - 根除 LLM 工作台新建阻断、Preview 跨空间表单残留及项目搜索上限等质量缺陷 - 修复即时页面服务端状态分页、版本切换指针及策略保存上下文丢弃问题
- 移除 ConsoleLayout 中阻塞路由挂载的 AnimatePresence mode="wait" - 消除外层容器多余的 motion.div 包装与水平位移叠加 - 改由各子页面自身的交错动效接管入场,恢复即时响应体验
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更概述
本 PR 针对控制台前端与 LPW 预览模块进行了深度的架构重构与交互体验加固,主要包含以下核心工作:
LPW 响应式纸张宽度与媒体块自适应:
flex-1 w-full max-w-5xl,配合外层@container/lpw与动态外边距实现全端优雅流式排版。image与mermaid块宽度计算:页面顶层最宽情况下默认居中以80%黄金比例呈现,分栏容器(如split、alternating或panel左右区分)内自适应最大化(100%),同时支持传入具体百分比(如60%)或固定像素。resources/lpw/schema/v1.1.json、TypeScript 契约types.ts与 Go 端preview_lpw_spec.go中mermaid块的width属性约束。文档批注展示体系全面重构:
控制台体验优化与业务台账重构(前置演进提交合入):
验证与质量保证
@lumina/components:55 个测试套件,290 个用例全部通过(覆盖自适应宽度、断点展开/折叠、抽屉呼出等场景)。pnpm -r test跨包全绿。components、web控制台、web-wiki三端生产构建与 TypeScript 类型检查均 100% 成功。make check:连续性预检、gofmt、go vet、go test -race全量通过。