mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-05 17:05:46 +01:00
Changed session weekly to dots.
This commit is contained in:
parent
ceacc25021
commit
e98bc3bd74
@ -21,10 +21,11 @@
|
||||
|
||||
.cell {
|
||||
display: flex;
|
||||
background-color: var(--base100);
|
||||
background-color: var(--base75);
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
margin: auto;
|
||||
border-radius: 100%;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
@ -38,5 +39,5 @@
|
||||
background-color: var(--primary400);
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 3px;
|
||||
border-radius: 100%;
|
||||
}
|
||||
|
@ -55,6 +55,7 @@ export function SessionsWeekly({ websiteId }: { websiteId: string }) {
|
||||
{format(getDayOfWeekAsDate(index), 'EEE', { locale: dateLocale })}
|
||||
</div>
|
||||
{day?.map((hour: number) => {
|
||||
const pct = hour / max;
|
||||
return (
|
||||
<div key={hour} className={classNames(styles.cell)}>
|
||||
{hour > 0 && (
|
||||
@ -62,7 +63,10 @@ export function SessionsWeekly({ websiteId }: { websiteId: string }) {
|
||||
label={`${formatMessage(labels.visitors)}: ${hour}`}
|
||||
position="right"
|
||||
>
|
||||
<div className={styles.block} style={{ opacity: hour / max }} />
|
||||
<div
|
||||
className={styles.block}
|
||||
style={{ opacity: pct, transform: `scale(${pct})` }}
|
||||
/>
|
||||
</TooltipPopup>
|
||||
)}
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user