Skip to content

Commit fc5bd70

Browse files
committed
KNOWAGE-9905
- add max width to col and truncate desc, show full desc in tooltip
1 parent b4033e6 commit fc5bd70

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/modules/managers/businessModelCatalogue/metaweb/businessModel/tabs/metawebAttributesTab/MetawebAttributesTab.vue

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<Checkbox v-else-if="column.field === 'subjectId'" v-model="columnsSubjectId[slotProps.data.uniqueName]" :binary="true" @change="onChange(slotProps.data, 'subjectId')"></Checkbox>
1313
<Dropdown v-else-if="column.field === 'type'" v-model="columnsType[slotProps.data.uniqueName]" class="kn-material-input" :options="metawebAttributesTabDescriptor.typeOptions" @change="onChange(slotProps.data, 'type')" />
1414
<InputText v-else-if="column.field === 'name'" v-model="slotProps.data[slotProps.column.props.field]" class="kn-material-input p-inputtext-sm p-p-2" @blur="$emit('metaUpdated')" />
15+
<span v-else-if="column.field === 'description'" v-tooltip.top="slotProps.data[slotProps.column.props.field]" class="kn-truncated-description">{{ slotProps.data[slotProps.column.props.field] }}</span>
1516
<span v-else>{{ slotProps.data[slotProps.column.props.field] }}</span>
1617
</div>
1718
</template>
@@ -234,3 +235,13 @@ export default defineComponent({
234235
}
235236
})
236237
</script>
238+
239+
<style lang="scss" scoped>
240+
.kn-truncated-description {
241+
display: block;
242+
max-width: 180px;
243+
overflow: hidden;
244+
text-overflow: ellipsis;
245+
white-space: nowrap;
246+
}
247+
</style>

0 commit comments

Comments
 (0)