Small fixes for global search [SCI-10708][SCI-10587][SCI-10599]

This commit is contained in:
Anton 2024-05-24 11:21:45 +02:00
parent 3fa533bc9c
commit 669c0a360f
3 changed files with 8 additions and 1 deletions

View file

@ -20,7 +20,7 @@
'pointer-events-none !text-sn-grey': !params.urls.show,
'!text-sn-black': dtComponent.currentViewMode === 'archived'
}"
class="font-bold mb-4 shrink-0 text-sn-blue hover:no-underline line-clamp-2 hover:text-sn-blue h-10">
class="font-bold mb-4 shrink-0 text-sn-blue hover:no-underline line-clamp-3 hover:text-sn-blue h-16">
{{ params.name }}
</a>
<div class="flex gap-4 mb-2.5">

View file

@ -109,6 +109,7 @@
</GeneralDropdown>
<input type="text" v-model="newTag.name"
ref="newTagNameInput"
@click="setRandomColor"
:placeholder="i18n.t('experiments.canvas.modal_manage_tags.new_tag_name')"
class="border-0 focus:outline-none bg-transparent" />
<i v-if="!creatingTag" class="sn-icon sn-icon-edit opacity-0 group-hover:opacity-50 ml-auto"></i>
@ -323,6 +324,11 @@ export default {
this.creatingTag = false;
this.newTag = { name: null, color: null };
},
setRandomColor() {
if (!this.newTag.color) {
this.newTag.color = this.tagsColors[Math.floor(Math.random() * this.tagsColors.length)];
}
}
}
};

View file

@ -317,6 +317,7 @@ export default {
this.newValue = [...this.newValue, value];
}
} else {
this.newValue = value;
this.$nextTick(() => {
this.close();
});