mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
fix: heatmap popover blink (#195)
This commit is contained in:
@@ -99,19 +99,25 @@ const UsageHeatMap = () => {
|
||||
: "stat-day-L4-bg";
|
||||
|
||||
return (
|
||||
<span
|
||||
className={`stat-container ${colorLevel} ${currentStat === v ? "current" : ""} ${
|
||||
todayTimeStamp === v.timestamp ? "today" : ""
|
||||
}`}
|
||||
<div
|
||||
className="stat-wrapper"
|
||||
key={i}
|
||||
onMouseEnter={(e) => handleUsageStatItemMouseEnter(e, v)}
|
||||
onMouseLeave={handleUsageStatItemMouseLeave}
|
||||
onClick={() => handleUsageStatItemClick(v)}
|
||||
>
|
||||
<span
|
||||
className={`stat-container ${colorLevel} ${currentStat === v ? "current" : ""} ${
|
||||
todayTimeStamp === v.timestamp ? "today" : ""
|
||||
}`}
|
||||
></span>
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
{nullCell.map((_, i) => (
|
||||
<span className="stat-container null" key={i}></span>
|
||||
<div className="stat-wrapper" key={i}>
|
||||
<span className="stat-container null"></span>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -23,12 +23,12 @@
|
||||
grid-template-columns: repeat(12, 1fr);
|
||||
grid-auto-flow: column;
|
||||
|
||||
> .stat-wrapper {
|
||||
> .stat-container {
|
||||
@apply block rounded-sm;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
background-color: @bg-lightgray;
|
||||
margin-bottom: 2px;
|
||||
|
||||
&.null {
|
||||
@apply bg-transparent;
|
||||
@@ -55,6 +55,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.usage-detail-container {
|
||||
|
Reference in New Issue
Block a user