Skip to content

Commit 855a19c

Browse files
committed
fix: review
1 parent a4a9331 commit 855a19c

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/components/CellWithPopover/CellWithPopover.scss

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@
99

1010
&__popover {
1111
display: inline-block;
12+
overflow: hidden;
1213

1314
max-width: 100%;
1415
padding: var(--g-spacing-4);
1516

1617
vertical-align: middle;
1718
white-space: nowrap;
19+
text-overflow: ellipsis;
1820

1921
.g-popover__handler {
2022
display: inline;
@@ -25,10 +27,7 @@
2527
}
2628
}
2729
&__children-wrapper {
28-
overflow: hidden;
29-
3030
cursor: pointer;
31-
text-overflow: ellipsis;
3231

3332
&_full-width {
3433
width: 100%;

src/components/CellWithPopover/CellWithPopover.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,12 @@ export function CellWithPopover({
2929
<Popover
3030
openDelay={DELAY_TIMEOUT}
3131
closeDelay={DELAY_TIMEOUT}
32-
className={b('popover', {'full-width': fullWidth}, className)}
32+
className={b('popover', {'full-width': fullWidth})}
3333
{...props}
3434
>
35-
<div className={b('children-wrapper', {'full-width': fullWidth})}>{children}</div>
35+
<div className={b('children-wrapper', {'full-width': fullWidth}, className)}>
36+
{children}
37+
</div>
3638
</Popover>
3739
</div>
3840
);

0 commit comments

Comments
 (0)