diff --git a/app/src/components/v-field-template/v-field-template.vue b/app/src/components/v-field-template/v-field-template.vue index 368594e1c8..5dc7c4db91 100644 --- a/app/src/components/v-field-template/v-field-template.vue +++ b/app/src/components/v-field-template/v-field-template.vue @@ -275,7 +275,7 @@ export default defineComponent({ } span { - min-width: 1ch; + min-width: 1px; min-height: 1em; } diff --git a/app/src/interfaces/display-template/display-template.vue b/app/src/interfaces/display-template/display-template.vue new file mode 100644 index 0000000000..3375bddd4d --- /dev/null +++ b/app/src/interfaces/display-template/display-template.vue @@ -0,0 +1,48 @@ + + + diff --git a/app/src/interfaces/display-template/index.ts b/app/src/interfaces/display-template/index.ts index f9fdb69d76..ef58169c6f 100644 --- a/app/src/interfaces/display-template/index.ts +++ b/app/src/interfaces/display-template/index.ts @@ -1,24 +1,12 @@ import { defineInterface } from '@/interfaces/define'; -import VFieldTemplate from '@/components/v-field-template'; +import InterfaceDisplayTemplate from './display-template.vue'; export default defineInterface(({ i18n }) => ({ id: 'display-template', name: i18n.t('display-template'), icon: 'arrow_drop_down_circle', - component: VFieldTemplate, + component: InterfaceDisplayTemplate, types: ['string'], - options: [ - { - field: 'collection', - name: i18n.t('collection'), - type: 'string', - meta: { - width: 'full', - interface: 'text-input', - }, - schema: { - default_value: null, - }, - }, - ], + system: true, + options: [], })); diff --git a/app/src/interfaces/field/field.vue b/app/src/interfaces/field/field.vue index c3364ccfaf..66bf1680d2 100644 --- a/app/src/interfaces/field/field.vue +++ b/app/src/interfaces/field/field.vue @@ -5,7 +5,15 @@ {{ $t('select_a_collection') }} - +