Support multiline descriptions for entities

Use a textarea for editing the description and preserve linebreaks
when it's displayed in the UI using a new preWrap class for this
purpose.
This commit is contained in:
Hornwitser 2025-09-06 18:52:47 +02:00
parent 96681bfd37
commit 37edf122a1
8 changed files with 43 additions and 36 deletions

View file

@ -37,10 +37,10 @@
</td>
<td>{{ shift.slots.size ? shift.slots.size : "" }}</td>
<td>
<input
type="text"
<textarea
rows="1"
v-model="shift.description"
>
/>
</td>
<td>
<button
@ -71,10 +71,10 @@
</td>
<td></td>
<td>
<input
type="text"
<textarea
rows="1"
v-model="newShiftDescription"
>
/>
</td>
<td>
<button
@ -98,7 +98,7 @@
<td>{{ shift.name }}</td>
<td>{{ shift.roleId }}</td>
<td>{{ shift.slots.size ? shift.slots.size : "" }}</td>
<td>{{ shift.description }}</td>
<td class="preWrap">{{ shift.description }}</td>
</tr>
</template>
</tbody>