Merge pull request #6322 from G-Chubinidze/gc_SCI_9401

CSS: Blank name error message on table [sci-9401]
This commit is contained in:
Martin Artnik 2023-10-05 11:04:20 +02:00 committed by GitHub
commit eee6da4abd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
<template>
<div class="content__table-container">
<div class="border-0 border-b border-dashed border-sn-light-grey my-6" v-if="!inRepository"></div>
<div class="table-header h-9 flex rounded mb-1 items-center relative w-full group/table-header" :class="{ 'editing-name': editingName, 'locked': locked }">
<div class="table-header h-9 flex rounded mb-3 items-center relative w-full group/table-header" :class="{ 'editing-name': editingName, 'locked': locked }">
<div v-if="!locked || element.attributes.orderable.name" :key="reloadHeader"
class="grow-1 text-ellipsis whitespace-nowrap grow my-1 font-bold"
:class="{'pointer-events-none': locked}">

View file

@ -239,8 +239,8 @@
if (this.editing && !this.singleLine) {
this.$nextTick(() => {
if (!this.$refs.input) return;
this.$refs.input.style.height = this.$refs.input.scrollHeight / 2 + 'px';
this.$refs.input.style.height = '0px';
this.$refs.input.style.height = this.$refs.input.scrollHeight + 'px';
});
}