Skip to content

Commit e3bfeda

Browse files
committed
HoverPreview should use regular card style
1 parent d6da645 commit e3bfeda

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

typescript/packages/jumble/src/views/CharmList.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,19 +118,21 @@ const HoverPreview = (
118118

119119
return (
120120
<div
121-
className="fixed z-50 w-128 shadow-xl pointer-events-none"
121+
className="fixed z-50 w-128 pointer-events-none
122+
border border-black shadow-[4px_4px_0px_0px_rgba(0,0,0,0.5)] rounded-[4px]
123+
"
122124
style={{
123125
left: `${position.x}px`,
124126
top: `${position.y}px`,
125127
transform: "translate(25%, 25%)",
126128
}}
127129
>
128-
<CommonCard className="p-2 shadow-xl bg-white">
130+
<CommonCard className="p-2 shadow-xl bg-white rounded-[4px]">
129131
<h3 className="text-xl font-semibold text-gray-800 mb-4">
130132
{name + ` (#${id!.slice(-4)})`}
131133
</h3>
132134
<div className="w-full bg-gray-50 rounded border border-gray-100 min-h-[256px] pointer-events-none select-none">
133-
<CharmRenderer className="h-full" charm={charm} />
135+
<CharmRenderer className="h-full rounded-[4px]" charm={charm} />
134136
</div>
135137
</CommonCard>
136138
</div>

0 commit comments

Comments
 (0)