Skip to content

Commit 5170760

Browse files
lucas-a-pelegrinoMartinSchoeler
authored andcommitted
fix: adjusts component params to match other charts (#37340)
1 parent 5219815 commit 5170760

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.changeset/swift-chefs-fail.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@rocket.chat/meteor": patch
3+
---
4+
5+
Fixes `Conversations by Tag` chart alignment to match similar charts in the `Reports` section of Omnichannel.

apps/meteor/client/views/omnichannel/reports/sections/DepartmentsSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const DepartmentsSection = () => {
1111
data={data}
1212
direction='horizontal'
1313
height={360}
14-
margins={{ left: 90, top: 30, right: 8 }}
14+
margins={{ left: 92, top: 30, right: 8 }}
1515
axis={{
1616
axisLeft: {
1717
tickSize: 0,

apps/meteor/client/views/omnichannel/reports/sections/TagsSection.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,15 @@ import { ellipsis } from '../utils/ellipsis';
66

77
export const TagsSection = () => {
88
const { data, ...config } = useTagsSection();
9-
const { ref, contentBoxSize: { inlineSize: cardWidth = 200 } = {} } = useResizeObserver<HTMLElement>();
10-
const width = cardWidth * 0.9;
9+
const { ref } = useResizeObserver<HTMLElement>();
1110

1211
return (
1312
<ReportCard ref={ref} {...config}>
1413
<BarChart
1514
data={data}
1615
direction='horizontal'
1716
height={360}
18-
maxWidth={width}
19-
margins={{ left: 40, top: 40, right: 20 }}
17+
margins={{ left: 92, top: 30, right: 8 }}
2018
axis={{
2119
axisLeft: {
2220
tickSize: 0,

0 commit comments

Comments
 (0)