mirror of
https://github.com/aziis98/statuspage.git
synced 2026-10-06 22:55:21 +00:00
ui: aggregate plot thinner lines, light blend darken, 0.25 opacity floor
This commit is contained in:
@@ -191,7 +191,7 @@ export function AggregatePlot({
|
|||||||
const lineCount = Math.max(1, paths.length)
|
const lineCount = Math.max(1, paths.length)
|
||||||
// gentler 1/sqrt(n) falloff: isolated lines stay visible while dense clusters
|
// gentler 1/sqrt(n) falloff: isolated lines stay visible while dense clusters
|
||||||
// still accumulate to a solid mass
|
// still accumulate to a solid mass
|
||||||
const opacity = 1 / Math.sqrt(lineCount)
|
const opacity = Math.max(0.25, 1 / Math.sqrt(lineCount))
|
||||||
|
|
||||||
const [hover, setHover] = useState<{
|
const [hover, setHover] = useState<{
|
||||||
sample: MetricEntry
|
sample: MetricEntry
|
||||||
@@ -267,7 +267,7 @@ export function AggregatePlot({
|
|||||||
fill="none"
|
fill="none"
|
||||||
stroke={color}
|
stroke={color}
|
||||||
stroke-opacity={opacity}
|
stroke-opacity={opacity}
|
||||||
stroke-width="1.5"
|
stroke-width="1"
|
||||||
stroke-linejoin="round"
|
stroke-linejoin="round"
|
||||||
stroke-linecap="round"
|
stroke-linecap="round"
|
||||||
/>
|
/>
|
||||||
|
|||||||
+1
-1
@@ -48,7 +48,7 @@
|
|||||||
--shadow-color: #0004;
|
--shadow-color: #0004;
|
||||||
--shadow: 0.35rem 0.35rem 0 var(--shadow-color);
|
--shadow: 0.35rem 0.35rem 0 var(--shadow-color);
|
||||||
--shadow-lg: 0.55rem 0.55rem 0 var(--shadow-color);
|
--shadow-lg: 0.55rem 0.55rem 0 var(--shadow-color);
|
||||||
--blend-overlap: multiply;
|
--blend-overlap: darken;
|
||||||
--overlay: rgba(0, 0, 0, 0.35);
|
--overlay: rgba(0, 0, 0, 0.35);
|
||||||
--sheen: rgba(255, 255, 255, 0.75);
|
--sheen: rgba(255, 255, 255, 0.75);
|
||||||
--sheen-strong: rgba(255, 255, 255, 0.9);
|
--sheen-strong: rgba(255, 255, 255, 0.9);
|
||||||
|
|||||||
Reference in New Issue
Block a user