Skip to content

优化文档卡片间距与顶部操作栏并发布 1.2.8 - #20

Merged
bifrost-proxy merged 2 commits into
mainfrom
codex/sticky-note-actions-card-spacing
Aug 15, 2026
Merged

bifrost-proxy merged 2 commits into
mainfrom
codex/sticky-note-actions-card-spacing

Conversation

@bifrost-proxy

Copy link
Copy Markdown
Owner

改动

  • 为相邻代码渲染卡片增加 12px 可测量间距,避免卡片视觉粘连且不破坏 CodeMirror 滚动定位
  • 将文档位置、状态、实时预览和自动换行操作区改为编辑器顶部吸顶栏
  • 为吸顶栏增加实体背景、分隔线和轻微模糊,保证滚动时内容清晰
  • 补充吸顶布局和滚动容器回归测试

验证

  • 197 个测试文件通过
  • 2403 项测试通过,7 项跳过
  • ESLint 通过
  • Renderer production build 通过

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5e21ae8875

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

// Let the spacer, sticky action bar, and document header participate
// directly in the scroller's flex layout. A sticky descendant would
// otherwise stop sticking at the bottom of this short wrapper.
display: "contents",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve a measurable box for viewport anchoring

When a user scrolls past the new sticky toolbar and switches tabs, display: contents makes scrollHeaderRef.current.getBoundingClientRect() in captureViewportAnchor return an empty rectangle. The anchor is consequently sampled at scrollRect.top + 8, underneath the sticky toolbar rather than below it; posAtCoords can then return no document position, causing the fallback viewport.from anchor to restore the tab at the wrong vertical position or behind the toolbar. Query the sticky toolbar's rectangle for anchoring, or otherwise retain a measurable header box.

Useful? React with 👍 / 👎.

@bifrost-proxy bifrost-proxy changed the title 优化文档卡片间距与顶部操作栏 优化文档卡片间距与顶部操作栏并发布 1.2.8 Aug 15, 2026
@bifrost-proxy
bifrost-proxy merged commit 842561f into main Aug 15, 2026
7 checks passed
@bifrost-proxy
bifrost-proxy deleted the codex/sticky-note-actions-card-spacing branch August 15, 2026 04:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants