From 95063250ff5005126da2e3207670b0948717498e Mon Sep 17 00:00:00 2001 From: Maxim Mordasov Date: Tue, 26 Mar 2024 16:05:33 +0000 Subject: [PATCH] Fix working hours over the schedule events rendering (#4113) # What this PR does Fixes working hours rendering ## Which issue(s) this PR closes ## Checklist - [ ] Unit, integration, and e2e (if applicable) tests updated - [ ] Documentation added (or `pr:no public docs` PR label added if not required) - [ ] Added the relevant release notes label (see labels prefixed w/ `release:`). These labels dictate how your PR will show up in the autogenerated release notes. --- grafana-plugin/src/components/WorkingHours/WorkingHours.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grafana-plugin/src/components/WorkingHours/WorkingHours.tsx b/grafana-plugin/src/components/WorkingHours/WorkingHours.tsx index aafe6952..4ba916e1 100644 --- a/grafana-plugin/src/components/WorkingHours/WorkingHours.tsx +++ b/grafana-plugin/src/components/WorkingHours/WorkingHours.tsx @@ -54,7 +54,7 @@ export const WorkingHours: FC = (props) => { key={index} x={`${duration > 0 ? (start * 100) / duration : 0}%`} // x/0 is NaN y={0} - width={`${duration > 0 ? (diff * 100) / duration : 0} %`} // x/0 is NaN + width={`${duration > 0 ? (diff * 100) / duration : 0}%`} // x/0 is NaN height="100%" fill={light ? 'url(#stripes_light)' : 'url(#stripes)'} />