Skip to content

Commit

Permalink
Fixed ExtraEditor
Browse files Browse the repository at this point in the history
  • Loading branch information
SaySaeqo committed Dec 21, 2023
1 parent adabfd6 commit b386122
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions editorApp/src/components/EditorExtra.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<div class="extra">
<div class="item" v-for="x in [...extras, newExtra]" :key="x.key">
<label v-if="x !== newExtra" :for="'extra-'+x.key">{{ x.key }}</label>
<input v-else type="text" v-model="x.key" />
<input :id="'extra-'+x.key" type="text" v-model="x.value" />
<input v-else type="text" v-model.lazy="x.key" />
<input :id="'extra-'+x.key" type="text" v-model.lazy="x.value" />
<select v-model="x.linkId">
<option v-for="exhibit in exhibits" :key="exhibit.id" :value="exhibit.id">
{{ exhibit.name }}
Expand Down Expand Up @@ -64,6 +64,7 @@ export default defineComponent({
.extra {
display: flex;
flex-direction: column;
min-width: 20em;
}
.item {
Expand All @@ -77,6 +78,10 @@ input {
min-width: 0;
}
select {
min-width: 0;
}
label:hover {
cursor: pointer;
}
Expand Down

0 comments on commit b386122

Please sign in to comment.