word break underscore

This commit is contained in:
Pete Matsyburka
2024-04-05 19:08:59 +03:00
parent 8e2700b8b8
commit 226ae2172e
2 changed files with 6 additions and 3 deletions
+2 -2
View File
@@ -26,7 +26,7 @@
@update:model-value="updateName"
/>
</div>
<div class="space-x-3 flex items-center">
<div class="space-x-3 flex items-center flex-shrink-0">
<slot
v-if="$slots.buttons"
name="buttons"
@@ -40,7 +40,7 @@
@click="maybeShowEmptyTemplateAlert"
>
<IconWritingSign
width="20"
width="22"
class="inline"
/>
<span class="hidden md:inline">
@@ -14,7 +14,10 @@
@focus="$emit('focus', $event)"
@blur="onBlur"
>
{{ value }}
<template
v-for="(item, index) in (value || '').split(/(_)/)"
:key="index"
>{{ item }}<wbr></template>
</span>
<span
v-if="withRequired"