📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
better annotation styles
Blue Mousebd971640e2f7
diff --git a/web/app/pages/Project/View/ViewProject.helpers.tsx b/web/app/pages/Project/View/ViewProject.helpers.tsxindex 778386bfe..0029174a2 100644--- a/web/app/pages/Project/View/ViewProject.helpers.tsx+++ b/web/app/pages/Project/View/ViewProject.helpers.tsx@@ -508,7 +508,7 @@ const getSettings = (// Convert annotations to grid linesconst lines: GridLineOptions[] = _map(annotations || [], (annotation) => ({value: dayjs(annotation.date).toDate(),- text: annotation.text.length > 20 ? `${annotation.text.substring(0, 20)}...` : annotation.text,+ text: annotation.text.length > 25 ? `${annotation.text.substring(0, 25)}...` : annotation.text,class: 'annotation-line',position: 'start',}))@@ -1019,7 +1019,7 @@ const getSettingsError = (// Convert annotations to grid linesconst annotationLines: GridLineOptions[] = _map(annotations || [], (annotation) => ({value: dayjs(annotation.date).toDate(),- text: annotation.text.length > 20 ? `${annotation.text.substring(0, 20)}...` : annotation.text,+ text: annotation.text.length > 25 ? `${annotation.text.substring(0, 25)}...` : annotation.text,class: 'annotation-line',position: 'start',}))@@ -1352,7 +1352,7 @@ const getSettingsPerf = (// Convert annotations to grid linesconst annotationLines: GridLineOptions[] = _map(annotations || [], (annotation) => ({value: dayjs(annotation.date).toDate(),- text: annotation.text.length > 20 ? `${annotation.text.substring(0, 20)}...` : annotation.text,+ text: annotation.text.length > 25 ? `${annotation.text.substring(0, 25)}...` : annotation.text,class: 'annotation-line',position: 'start',}))diff --git a/web/app/styles/ProjectViewStyle.css b/web/app/styles/ProjectViewStyle.cssindex 0c61c3726..e4f29b593 100644--- a/web/app/styles/ProjectViewStyle.css+++ b/web/app/styles/ProjectViewStyle.css@@ -199,16 +199,16 @@ body.dark .bb-ygrid {}.bb-xgrid-line.annotation-line line {- stroke: var(--color-purple-500);- stroke-width: 2;- stroke-dasharray: 4 2;+ stroke: var(--color-slate-500);+ stroke-width: 1;+ stroke-dasharray: 4 3;pointer-events: stroke;}.bb-xgrid-line.annotation-line text {font-size: 10px;font-weight: 600;- fill: var(--color-purple-700);+ fill: var(--color-gray-700);dominant-baseline: middle;text-anchor: start;paint-order: stroke fill;@@ -219,11 +219,7 @@ body.dark .bb-ygrid {pointer-events: all;}-body.dark .bb-xgrid-line.annotation-line line {- stroke: var(--color-purple-400);-}-body.dark .bb-xgrid-line.annotation-line text {- fill: var(--color-purple-300);+ fill: var(--color-gray-300);stroke: var(--color-slate-900);}