This is an automated email from the ASF dual-hosted git repository.
kgabryje pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new b3dfd4930a fix(explore): Glitch in a tooltip with metric's name
(#32499)
b3dfd4930a is described below
commit b3dfd4930acbbcd9dd74bf7d9c02d00b2b818292
Author: Kamil Gabryjelski <[email protected]>
AuthorDate: Wed Mar 5 16:55:00 2025 +0100
fix(explore): Glitch in a tooltip with metric's name (#32499)
---
.../src/components/labelUtils.tsx | 15 ++++++---------
1 file changed, 6 insertions(+), 9 deletions(-)
diff --git
a/superset-frontend/packages/superset-ui-chart-controls/src/components/labelUtils.tsx
b/superset-frontend/packages/superset-ui-chart-controls/src/components/labelUtils.tsx
index 03af5c13e8..4ef491f13c 100644
---
a/superset-frontend/packages/superset-ui-chart-controls/src/components/labelUtils.tsx
+++
b/superset-frontend/packages/superset-ui-chart-controls/src/components/labelUtils.tsx
@@ -23,21 +23,18 @@ import { ColumnMeta, Metric } from
'@superset-ui/chart-controls';
const TooltipSectionWrapper = styled.div`
${({ theme }) => css`
- display: flex;
- flex-direction: column;
+ display: -webkit-box;
+ -webkit-line-clamp: 40;
+ -webkit-box-orient: vertical;
+ overflow: hidden;
+ text-overflow: ellipsis;
+
font-size: ${theme.typography.sizes.s}px;
line-height: 1.2;
&:not(:last-of-type) {
margin-bottom: ${theme.gridUnit * 2}px;
}
- &:last-of-type {
- display: -webkit-box;
- -webkit-line-clamp: 40;
- -webkit-box-orient: vertical;
- overflow: hidden;
- text-overflow: ellipsis;
- }
`}
`;