@mingxy/opencode-mascot 0.4.11 → 0.4.13

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.11",
3
+ "version": "0.4.13",
4
4
  "description": "OpenCode TUI mascot plugin framework - customizable ASCII mascots for your terminal",
5
5
  "author": "mingxy",
6
6
  "license": "MIT",
@@ -97,9 +97,8 @@ export function HomeMascot(props: HomeMascotProps): JSX.Element {
97
97
  setPosY(dragAnchorY + (e.y - dragStartY));
98
98
  }
99
99
  }}
100
- onMouseUp={() => { log("MOUSE", `up isDragging=${isDragging}`); stopDrag(); }}
101
- onMouseDragEnd={() => { log("MOUSE", `dragEnd isDragging=${isDragging}`); stopDrag(); }}
102
- onMouseOut={() => { log("MOUSE", `out isDragging=${isDragging}`); if (isDragging) stopDrag(); }}
100
+ onMouseUp={() => { stopDrag(); }}
101
+ onMouseDragEnd={() => { stopDrag(); }}
103
102
  >
104
103
  {renderers[currentName()]?.element() ?? null}
105
104
  </box>
@@ -240,12 +240,6 @@ export function SidebarMascot(props: SidebarMascotProps): JSX.Element {
240
240
  renderers[currentName()].setDragging(false);
241
241
  checkEdge();
242
242
  }}
243
- onMouseOut={() => {
244
- if (isDragging) {
245
- isDragging = false;
246
- renderers[currentName()].setDragging(false);
247
- }
248
- }}
249
243
  >
250
244
  {renderers[currentName()]?.element() ?? null}
251
245
  </box>
@@ -315,7 +315,7 @@ export function createAnimatedRenderer(pack: MascotPack): {
315
315
  const dm = dragMsg();
316
316
 
317
317
  return (
318
- <box flexDirection="column" left={left} top={top}>
318
+ <box flexDirection="column" alignItems="flex-start" left={left} top={top}>
319
319
  {cel ? <box position="absolute" top={-1} left={0}><text fg={flashColor() ?? fg}>{cel.text}</text></box> : null}
320
320
  {dm ? <box position="absolute" top={-1} left={0}><text fg="#FF4081">{dm}</text></box> : null}
321
321
  {lines.map((line: string) => (