@cfbender/cesium 0.7.0 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -36,7 +36,7 @@ Add to `~/.config/opencode/opencode.json`:
36
36
 
37
37
  ```json
38
38
  {
39
- "plugin": ["@cfbender/cesium"]
39
+ "plugin": ["@cfbender/cesium@latest"]
40
40
  }
41
41
  ```
42
42
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cfbender/cesium",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "Beautiful self-contained HTML artifacts from your opencode agent.",
5
5
  "keywords": [
6
6
  "agent",
@@ -942,7 +942,6 @@ export function getClientJs(): string {
942
942
  // Hide when popup opens (activePopup watcher via close/open hooks handled inline above)
943
943
  // Hide menu when selection is cleared or moves outside anchored content
944
944
  }
945
- }
946
945
 
947
946
  // ─── Verdict button wiring ───────────────────────────────────────────────
948
947
  function wireVerdictButtons() {
@@ -1133,13 +1133,37 @@ body { position: relative; }
1133
1133
  flex-direction: column;
1134
1134
  z-index: 50;
1135
1135
  }
1136
- @media (max-width: 900px) {
1136
+ /* When annotate is active and viewport has room for page + rail side-by-side,
1137
+ shift .page leftward so its right edge (and the .cs-anchor-affordance-block
1138
+ button parked at right: 8px of each annotatable block) does not slide under
1139
+ the rail. Required viewport width: 1120 (page) + 24 (gap) + 280 (rail) +
1140
+ 24 (right gutter) = 1448px. */
1141
+ @media (min-width: 1448px) {
1142
+ body.cs-annotate-active .page,
1143
+ body:has(.cs-annotate-scaffold) .page {
1144
+ margin-right: 328px; /* rail width (280) + outer gutter (24) + inner gap (24) */
1145
+ margin-left: auto;
1146
+ }
1147
+ }
1148
+ /* Below 1448px, fall back to a static rail below content. The previous
1149
+ breakpoint at 900px left a wide intermediate zone where the absolute rail
1150
+ overlapped the right edge of .page and covered the per-block Comment button. */
1151
+ @media (max-width: 1447px) {
1137
1152
  .cs-comment-rail {
1138
1153
  position: static;
1139
1154
  width: 100%;
1140
1155
  max-height: none;
1141
1156
  margin-top: 24px;
1142
1157
  }
1158
+ /* In static-rail mode, bubbles flow naturally; positionBubbles() sets
1159
+ top: <px> which we override since bubbles should stack normally. */
1160
+ .cs-comment-rail .cs-comment-bubble {
1161
+ position: static;
1162
+ margin-bottom: 12px;
1163
+ }
1164
+ .cs-comment-rail .cs-comment-bubble::before {
1165
+ display: none;
1166
+ }
1143
1167
  }
1144
1168
  .cs-comment-bubble {
1145
1169
  position: absolute;