fix: portal daily chart bars collapsed to zero height
This commit is contained in:
1 parent
309372e1fe
commit
e93fb4a51c
1 file changed
+2
-2
+2
-2
@@ -432,7 +432,7 @@ export default function PortalPage() {
|
|||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
key={day.date}
|
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 */}
|
{/* 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">
|
<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>
|
</div>
|
||||||
|
|
||||||
{/* Bar */}
|
{/* 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
|
<div
|
||||||
style={{ height: `${heightPercent}%` }}
|
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"
|
className="w-full bg-gradient-to-t from-orange-600 to-amber-400 rounded-t-lg transition-all group-hover:brightness-125"
|
||||||
|
|||||||
Reference in new issue
Block a user