@mingxy/opencode-mascot 0.4.4 → 0.4.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mingxy/opencode-mascot",
3
- "version": "0.4.4",
3
+ "version": "0.4.6",
4
4
  "description": "OpenCode TUI mascot plugin framework - customizable ASCII mascots for your terminal",
5
5
  "author": "mingxy",
6
6
  "license": "MIT",
@@ -57,6 +57,7 @@ export function HomeMascot(props: HomeMascotProps): JSX.Element {
57
57
  <box
58
58
  left={posX()}
59
59
  top={posY()}
60
+ alignItems="center"
60
61
  zIndex={100}
61
62
  flexDirection="column"
62
63
  onMouseDown={(e: any) => {
@@ -75,8 +76,6 @@ export function HomeMascot(props: HomeMascotProps): JSX.Element {
75
76
  dragAnchorY = posY();
76
77
  isDragging = true;
77
78
  renderers[currentName()].setDragging(true);
78
- e.preventDefault();
79
- e.stopPropagation();
80
79
  props.api.renderer.clearSelection();
81
80
  }
82
81
  }}
@@ -84,9 +83,6 @@ export function HomeMascot(props: HomeMascotProps): JSX.Element {
84
83
  if (e.modifiers?.alt && isDragging) {
85
84
  setPosX(dragAnchorX + (e.x - dragStartX));
86
85
  setPosY(dragAnchorY + (e.y - dragStartY));
87
- e.preventDefault();
88
- e.stopPropagation();
89
- props.api.renderer.clearSelection();
90
86
  }
91
87
  }}
92
88
  onMouseUp={() => { stopDrag(); }}
@@ -216,8 +216,6 @@ export function SidebarMascot(props: SidebarMascotProps): JSX.Element {
216
216
  dragAnchorY = posY();
217
217
  isDragging = true;
218
218
  renderers[currentName()].setDragging(true);
219
- e.preventDefault();
220
- e.stopPropagation();
221
219
  props.api.renderer.clearSelection();
222
220
  }
223
221
  }}
@@ -225,9 +223,6 @@ export function SidebarMascot(props: SidebarMascotProps): JSX.Element {
225
223
  if (e.modifiers?.alt && isDragging) {
226
224
  setPosX(clampX(dragAnchorX + (e.x - dragStartX)));
227
225
  setPosY(clampY(dragAnchorY + (e.y - dragStartY)));
228
- e.preventDefault();
229
- e.stopPropagation();
230
- props.api.renderer.clearSelection();
231
226
  }
232
227
  }}
233
228
  onMouseUp={() => {