github boogoo619/dsh-focus-overlay v0.13.1

47 minutes ago

修复 · Bug fixes

  • 专注模式顶部留白合并(macOS):标题栏并入官方红绿灯留白带(48px),会话标题与红绿灯同一行、正文从 48px 开始——正文起点 117px → 48px、首行内容 145px → 76px(-69px);macOS 原生全屏 68px → 40px。普通浏览器布局逐像素不变。
    Focus mode's title row is merged into the official macOS traffic-light band (48px): the title shares the line with the traffic lights and the transcript starts at 48px — content top 117 → 48 and first content 145 → 76 (-69px); native fullscreen 68 → 40. Plain-browser layout stays pixel-identical.
  • 窗口拖拽带在含内容的会话中失效:拖拽带改为 overlay 最后一个渲染的 app-region 矩形(滚动内容 / 右侧导航的 no-drag 矩形不再覆盖它),标题行内的「退出专注」按钮显式排除拖拽、保持可点。Windows 保持 40px 标题栏带(官方标题栏菜单绘制在其上层、需保持可见),标题行紧贴其下,正文 109px → 80px。
    Fixed the window drag band dying on sessions with content — the band is now the overlay's last rendered app-region claim, and the exit control inside the title row is explicitly no-drag. On Windows the 40px caption band stays chrome (the official caption menubar paints above the overlay and must remain visible); the title row sits directly below it, transcript 109 → 80px.

测试 · Tests

  • 桌面窗口 e2e:desktop-frame.mjs 131 条断言、drag-band.mjs 44 条断言(按 Electron 的有序 app-region 命中规则模拟,覆盖滚动内容、合成控件翻转与真实点击)全部通过;header-toggle 与 input-caret(借用官方输入条 + 内置输入条)保持全绿。
    Desktop-frame e2e now asserts 131 checks and the new drag-band regression 44 checks (ordered app-region hit-test emulation incl. scrolled content, a synthetic ordering flip and a real click); header-toggle and both input-caret modes stay green.
  • 真实 Electron 窗口(隔离实例、真实 preload、CDP)修改前后对比 55/55 通过:正文 117 → 48、首行 145 → 76、标题 x=88 与红绿灯同行、12/12 拖拽探测点可拖、退出按钮可点、无插件报错。
    A real Electron window (isolated instance, real preload, CDP) passed 55/55 before/after checks: content top 117 → 48, first content 145 → 76, title at x=88 on the traffic-light line, 12/12 band probes draggable, exit clickable, no plugin errors.
  • 单测 129 全绿。
    129 unit tests green.

Full Changelog: v0.13.0...v0.13.1

Don't miss a new dsh-focus-overlay release

NewReleases is sending notifications on new releases.