Compare commits

...

1 Commits

Author SHA1 Message Date
Ishan Uniyal
9aba8564c6 feat: tooltip scroll bug 2026-02-09 11:42:46 +05:30
2 changed files with 9 additions and 7 deletions

View File

@@ -65,6 +65,9 @@
.value-string {
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
&.filter-disabled {

View File

@@ -3,7 +3,7 @@
/* eslint-disable jsx-a11y/no-static-element-interactions */
/* eslint-disable jsx-a11y/click-events-have-key-events */
import { Fragment, useMemo, useState } from 'react';
import { Button, Checkbox, Input, Skeleton, Typography } from 'antd';
import { Button, Checkbox, Input, Skeleton, Tooltip, Typography } from 'antd';
import cx from 'classnames';
import { removeKeysFromExpression } from 'components/QueryBuilderV2/utils';
import {
@@ -646,12 +646,11 @@ export default function CheckboxFilter(props: ICheckboxProps): JSX.Element {
{filter.customRendererForValue ? (
filter.customRendererForValue(value)
) : (
<Typography.Text
className="value-string"
ellipsis={{ tooltip: { placement: 'top' } }}
>
{String(value)}
</Typography.Text>
<Tooltip title={String(value)} mouseLeaveDelay={0}>
<Typography.Text className="value-string">
{String(value)}
</Typography.Text>
</Tooltip>
)}
<Button type="text" className="only-btn">
{isSomeFilterPresentForCurrentAttribute