Skip to content

Commit 9664554

Browse files
Yohhnicolaswurtz
authored andcommitted
front: fix overlap while searching by trigram with elipsis
1 parent 9719166 commit 9664554

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

front/src/common/Pathfinding/TypeAndPath.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ function OpTooltips({ opList }: { opList: SearchResultItemOperationalPoint[] })
4444
className={cx('op', { wrong: !op.name })}
4545
key={`typeandpath-op-${idx}-${op.trigram}`}
4646
style={{ left: `${leftMargin}rem` }}
47+
title={op.name}
4748
>
4849
{op.name ? op.name : <GoAlert />}
4950
</div>

front/src/styles/scss/common/components/_typeAndPath.scss

+3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@
2929
transform: rotate(-40deg);
3030
transform-origin: left;
3131
border-radius: var(--border-radius);
32+
max-width: 7rem;
3233
white-space: nowrap;
34+
overflow: hidden;
35+
text-overflow: ellipsis;
3336
font-size: 0.7rem;
3437
&.wrong {
3538
position: absolute;

0 commit comments

Comments
 (0)