Skip to content

Commit

Permalink
[Missions] Afficher le nom du navire en entier dans la liste des cont…
Browse files Browse the repository at this point in the history
…rôles d'une mission (#2666)

## Linked issues

- Resolve #2657

----

- [ ] Tests E2E (Cypress)
  • Loading branch information
louptheron authored Oct 31, 2023
2 parents 8944652 + fd325da commit 7506061
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ export function Item({ initialValues, isSelected, onDuplicate, onRemove, onSelec

const infractionTags = useMemo(() => {
const allInfractions = getMissionActionInfractionsFromMissionActionFormValues(initialValues, true)
if (!allInfractions.length) {
return []
}
const nonPendingInfractions = getMissionActionInfractionsFromMissionActionFormValues(initialValues)
const pendingInfractions = allInfractions.filter(
({ infractionType }) => infractionType === MissionAction.InfractionType.PENDING
Expand Down Expand Up @@ -244,8 +247,8 @@ const ActionLabel = styled.div`
> p {
margin-top: 0px;
color: ${p => p.theme.color.gunMetal};
padding: 1px 8px 0 0;
height: 22px;
padding: 1px 0px 0 0;
height: 30px;
}
`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ export function getActionTitle(itemTitle: string, details: string | undefined, p

return (
<StyledSpan>
{itemTitle} - <strong>{details}</strong>
{itemTitle} <br />
<strong>{details}</strong>
</StyledSpan>
)
}
Expand Down Expand Up @@ -74,6 +75,6 @@ const StyledSpan = styled.span`
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 180px;
max-width: 188px;
display: inline-block;
`

0 comments on commit 7506061

Please sign in to comment.