@mingxy/opencode-mascot 0.3.1 → 0.3.2

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.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "OpenCode TUI mascot plugin framework - customizable ASCII mascots for your terminal",
5
5
  "author": "mingxy",
6
6
  "license": "MIT",
@@ -49,13 +49,16 @@ export function HomeMascot(props: HomeMascotProps): JSX.Element {
49
49
  });
50
50
 
51
51
  return (
52
- <box
53
- left={posX()}
54
- top={posY()}
55
- alignItems="center"
56
- zIndex={100}
57
- flexDirection="column"
58
- onMouseDown={(e: any) => {
52
+ <box flexDirection="column" alignItems="center">
53
+ <box height={5} width={10} />
54
+ <box
55
+ position="absolute"
56
+ left={posX()}
57
+ top={posY()}
58
+ alignItems="center"
59
+ zIndex={100}
60
+ flexDirection="column"
61
+ onMouseDown={(e: any) => {
59
62
  const now = Date.now();
60
63
  if (now - lastClickTime < 300) {
61
64
  switchToNext();
@@ -100,6 +103,7 @@ export function HomeMascot(props: HomeMascotProps): JSX.Element {
100
103
  }}
101
104
  >
102
105
  {renderers[currentName()]?.element() ?? null}
106
+ </box>
103
107
  </box>
104
108
  );
105
109
  }