mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-10 08:21:37 +08:00
Small fixes [SCI-10381][SCI-10665][SCI-10666]
This commit is contained in:
parent
e3fbd945f8
commit
091c0612e3
3 changed files with 52 additions and 44 deletions
|
|
@ -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();
|
||||||
|
|
|
||||||
|
|
@ -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">
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue