NQ-63 truncate character name in select screen and hud

This commit is contained in:
Colin Kallemein 2024-06-08 14:05:13 +02:00
parent 5ba2547c6e
commit d0cd073b95
2 changed files with 12 additions and 2 deletions

View File

@ -82,6 +82,12 @@ const socket = useSocketStore();
span, label {
font-size: 14px;
}
.player-name {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
max-width: 125px;
}
}
.player-details {

View File

@ -200,10 +200,14 @@ function create() {
label {
font-weight: bold;
position: absolute;
left: 50%;
top: 20px;
width: 100%;
transform: translateY(-50%);
max-width: 130px;
transform: translateY(-50%) translateX(-50%);
text-align: center;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
button.delete {