Small fixes [SCI-10381][SCI-10665][SCI-10666]

This commit is contained in:
Anton 2024-04-24 12:40:29 +02:00
parent e3fbd945f8
commit 091c0612e3
3 changed files with 52 additions and 44 deletions

View file

@ -155,6 +155,7 @@ let inlineEditing = (function() {
if (inputField(container).attr('disabled')) { if (inputField(container).attr('disabled')) {
saveAllEditFields(); saveAllEditFields();
let input = inputField(container); let input = inputField(container);
input.val(container.attr('data-original-name'));
input.attr('disabled', false) input.attr('disabled', false)
.removeClass('hidden') .removeClass('hidden')
.focus(); .focus();

View file

@ -1,5 +1,6 @@
<template> <template>
<div> <div>
<perfect-scrollbar class="h-[50vh] relative">
<div v-if="roles.length > 0 && visible && default_role" class="p-2 flex items-center gap-2 border-solid border-0 border-b border-b-sn-sleepy-grey"> <div v-if="roles.length > 0 && visible && default_role" class="p-2 flex items-center gap-2 border-solid border-0 border-b border-b-sn-sleepy-grey">
<div> <div>
<img src="/images/icon/team.png" class="rounded-full w-8 h-8"> <img src="/images/icon/team.png" class="rounded-full w-8 h-8">
@ -38,7 +39,6 @@
<div class="h-6 w-6"></div> <div class="h-6 w-6"></div>
</div> </div>
</div> </div>
<perfect-scrollbar class="h-[50vh] relative">
<div v-for="userAssignment in manuallyAssignedUsers" <div v-for="userAssignment in manuallyAssignedUsers"
:key="userAssignment.id" :key="userAssignment.id"
class="p-2 flex items-center gap-2"> class="p-2 flex items-center gap-2">

View file

@ -1,11 +1,18 @@
<template> <template>
<div :title="text" class="flex items-center"> <div :title="text" class="flex items-center">
<template v-if="text.length <= endCharacters">
<div class="shrink-0">
{{ text }}
</div>
</template>
<template v-else>
<div class="truncate"> <div class="truncate">
{{ text.slice(0, endCharacters * -1) }} {{ text.slice(0, endCharacters * -1) }}
</div> </div>
<div class="shrink-0"> <div class="shrink-0">
{{ text.slice(text.length - endCharacters) }} {{ text.slice(text.length - endCharacters) }}
</div> </div>
</template>
</div> </div>
</template> </template>