Skip to content

Commit

Permalink
front: handle long file names in the infra list
Browse files Browse the repository at this point in the history
Signed-off-by: theocrsb <[email protected]>
  • Loading branch information
theocrsb committed Mar 5, 2025
1 parent 63a6a0e commit 8734217
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default function InfraSelectorEditionItem({
</span>
) : (
<>
<span className="flex-grow-1">{infra.name}</span>
<span className="flex-grow-1 infra-name">{infra.name}</span>
{infra.locked && (
<span className="infra-lock">
<small>{t('infraManagement:locked')}</small>
Expand Down
11 changes: 8 additions & 3 deletions front/src/modules/infra/styles/_infraSelector.scss
Original file line number Diff line number Diff line change
Expand Up @@ -213,12 +213,17 @@
input {
background: none;
}
span {
display: flex;
.infra-name {
width: 100px;
overflow: hidden;
position: relative;
display: inline-block;
text-overflow: ellipsis;
white-space: nowrap;
}
.infra-lock {
display: flex;
align-items: center;
justify-content: end;
color: var(--coolgray7);
padding: 0 4px 0 4px;
text-transform: uppercase;
Expand Down

0 comments on commit 8734217

Please sign in to comment.