update
This commit is contained in:
@@ -27,12 +27,12 @@ function setOrt(ort) {
|
||||
<button v-for="t in TYPES" :key="t.key" :class="{ active: modelValue.type === t.key }"
|
||||
@click="setType(t.key)">{{ t.label }}</button>
|
||||
</div>
|
||||
<input
|
||||
<textarea
|
||||
v-if="modelValue.type === 'link'"
|
||||
class="dlg-input" :value="modelValue.ort"
|
||||
placeholder="https://…"
|
||||
class="dlg-input dlg-textarea" :value="modelValue.ort"
|
||||
rows="4"
|
||||
placeholder="https://… — ein Link pro Zeile"
|
||||
@input="setOrt($event.target.value)"
|
||||
@keyup.enter="emit('submit')"
|
||||
/>
|
||||
<select
|
||||
v-else-if="modelValue.type === 'projekt' || modelValue.type === 'uni'"
|
||||
@@ -69,4 +69,5 @@ function setOrt(ort) {
|
||||
}
|
||||
.dlg-input:focus { outline: none; border-color: var(--accent); }
|
||||
select.dlg-input { cursor: pointer; }
|
||||
.dlg-textarea { resize: vertical; min-height: 5rem; }
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user