Skip to content

v0.2.2 — all four corners work

Choose a tag to compare

@teethyachi teethyachi released this 09 Sep 01:58
· 4 commits to main since this release

0.2.2 — all four corners work

The 掘金 write-up admitted it: "右下角正常,另外三个角布局是坏的". Fixed.

  • Dragging the expanded window is now clamped to the viewport on both axes (before, only top/left were), so it can't run off the right or bottom edge.
  • Collapse → expand restores a saved spot pulled back on screen if it was partly hidden or the viewport shrank.
  • Drag the collapsed bar to a different corner and it expands there, instead of flying back to the old spot.
  • Window resize re-runs placement.

Verified with a headless-Chromium harness that drags / collapses / expands at every corner (useage-window-campaign/scripts/corners.cjs); test 8 locks the geometry. Same four RPCs, no new endpoints, nothing else changed.

dsh plugin install github:teethyachi/dsh-usage-mini#v0.2.2