Skip to content

Commit

Permalink
front: fix projected train icon when ellipsis
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainValls committed Jan 15, 2025
1 parent ed45fd3 commit cb44087
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,14 @@ const TimetableTrainCard = ({
/>
</div>
<div title={train.trainName} className="checkbox-label">
{projectionPathIsUsed && (
<div className="train-projected">
<Manchette iconColor="var(--white100)" />
</div>
)}
{train.trainName}
<div className="train-info">
{projectionPathIsUsed && (
<div className="train-projected">
<Manchette iconColor="var(--white100)" />
</div>
)}
<span className="train-name">{train.trainName}</span>
</div>
</div>
</div>
<div className="rolling-stock">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -368,13 +368,24 @@
background-color: var(--info30);
border-radius: 4px;
position: relative;
flex-shrink: 0;
svg {
position: absolute;
top: 0;
left: 0;
transform: translate(2px, 2px);
}
}
.train-info {
display: flex;
align-items: center;
min-width: 0;
}
.train-name {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}

.scenario-timetable-toolbar {
Expand Down

0 comments on commit cb44087

Please sign in to comment.