fix: portal daily chart bars collapsed to zero height

This commit is contained in:
Ajasra committed 2026-10-29 13:53:45 +08:00
1 parent 309372e1fe
commit e93fb4a51c
1 file changed
+2 -2
+2 -2
View File
@@ -432,7 +432,7 @@ export default function PortalPage() {
return (
<div
key={day.date}
className="flex-1 min-w-[34px] flex flex-col items-center gap-1 group relative"
className="flex-1 min-w-[34px] h-full flex flex-col items-center gap-1 group relative"
>
{/* Hover Tooltip */}
<div className="absolute -top-10 opacity-0 group-hover:opacity-100 transition-opacity pointer-events-none bg-black/90 border border-purple-700/60 rounded-lg px-2 py-1 text-[10px] font-mono text-white whitespace-nowrap z-20 shadow-lg">
@@ -440,7 +440,7 @@ export default function PortalPage() {
</div>
{/* Bar */}
<div className="w-full bg-[#1e0e38] rounded-t-lg overflow-hidden flex flex-col justify-end" style={{ height: "100%" }}>
<div className="w-full flex-1 min-h-0 bg-[#1e0e38] rounded-t-lg overflow-hidden flex flex-col justify-end">
<div
style={{ height: `${heightPercent}%` }}
className="w-full bg-gradient-to-t from-orange-600 to-amber-400 rounded-t-lg transition-all group-hover:brightness-125"