fix: Update styles for canned responses modal (#6350)
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<mention-box :items="items" @mention-select="handleMentionClick" />
|
<mention-box :items="items" @mention-select="handleMentionClick">
|
||||||
|
<template slot-scope="{ item }">
|
||||||
|
<strong>{{ item.label }}</strong> - {{ item.description }}
|
||||||
|
</template>
|
||||||
|
</mention-box>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
@@ -1,5 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
<mention-box :items="items" @mention-select="handleVariableClick" />
|
<mention-box :items="items" @mention-select="handleVariableClick">
|
||||||
|
<template slot-scope="{ item }">
|
||||||
|
<span class="text-capitalize variable--list-label">
|
||||||
|
{{ item.description }}
|
||||||
|
</span>
|
||||||
|
({{ item.label }})
|
||||||
|
</template>
|
||||||
|
</mention-box>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@@ -35,3 +42,8 @@ export default {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
<style scoped>
|
||||||
|
.variable--list-label {
|
||||||
|
font-weight: var(--font-weight-bold);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
@mouseover="onHover(index)"
|
@mouseover="onHover(index)"
|
||||||
>
|
>
|
||||||
<a class="text-truncate">
|
<a class="text-truncate">
|
||||||
<strong>{{ item.label }}</strong> - {{ item.description }}
|
<slot :item="item" />
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
@@ -21,18 +21,18 @@
|
|||||||
<div class="medium-12 columns">
|
<div class="medium-12 columns">
|
||||||
<label :class="{ error: $v.content.$error }">
|
<label :class="{ error: $v.content.$error }">
|
||||||
{{ $t('CANNED_MGMT.ADD.FORM.CONTENT.LABEL') }}
|
{{ $t('CANNED_MGMT.ADD.FORM.CONTENT.LABEL') }}
|
||||||
<label class="editor-wrap">
|
|
||||||
<woot-message-editor
|
|
||||||
v-model="content"
|
|
||||||
class="message-editor"
|
|
||||||
:class="{ editor_warning: $v.content.$error }"
|
|
||||||
:enable-variables="true"
|
|
||||||
:enable-canned-responses="false"
|
|
||||||
:placeholder="$t('CANNED_MGMT.ADD.FORM.CONTENT.PLACEHOLDER')"
|
|
||||||
@blur="$v.content.$touch"
|
|
||||||
/>
|
|
||||||
</label>
|
|
||||||
</label>
|
</label>
|
||||||
|
<div class="editor-wrap">
|
||||||
|
<woot-message-editor
|
||||||
|
v-model="content"
|
||||||
|
class="message-editor"
|
||||||
|
:class="{ editor_warning: $v.content.$error }"
|
||||||
|
:enable-variables="true"
|
||||||
|
:enable-canned-responses="false"
|
||||||
|
:placeholder="$t('CANNED_MGMT.ADD.FORM.CONTENT.PLACEHOLDER')"
|
||||||
|
@blur="$v.content.$touch"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<div class="medium-12 columns">
|
<div class="medium-12 columns">
|
||||||
@@ -137,5 +137,17 @@ export default {
|
|||||||
.ProseMirror-menubar {
|
.ProseMirror-menubar {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ProseMirror-woot-style {
|
||||||
|
min-height: 20rem;
|
||||||
|
|
||||||
|
p {
|
||||||
|
font-size: var(--font-size-default);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.message-editor {
|
||||||
|
border: 1px solid var(--s-200);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -18,18 +18,18 @@
|
|||||||
<div class="medium-12 columns">
|
<div class="medium-12 columns">
|
||||||
<label :class="{ error: $v.content.$error }">
|
<label :class="{ error: $v.content.$error }">
|
||||||
{{ $t('CANNED_MGMT.EDIT.FORM.CONTENT.LABEL') }}
|
{{ $t('CANNED_MGMT.EDIT.FORM.CONTENT.LABEL') }}
|
||||||
<label class="editor-wrap">
|
|
||||||
<woot-message-editor
|
|
||||||
v-model="content"
|
|
||||||
class="message-editor"
|
|
||||||
:class="{ editor_warning: $v.content.$error }"
|
|
||||||
:enable-variables="true"
|
|
||||||
:enable-canned-responses="false"
|
|
||||||
:placeholder="$t('CANNED_MGMT.EDIT.FORM.CONTENT.PLACEHOLDER')"
|
|
||||||
@blur="$v.content.$touch"
|
|
||||||
/>
|
|
||||||
</label>
|
|
||||||
</label>
|
</label>
|
||||||
|
<div class="editor-wrap">
|
||||||
|
<woot-message-editor
|
||||||
|
v-model="content"
|
||||||
|
class="message-editor"
|
||||||
|
:class="{ editor_warning: $v.content.$error }"
|
||||||
|
:enable-variables="true"
|
||||||
|
:enable-canned-responses="false"
|
||||||
|
:placeholder="$t('CANNED_MGMT.EDIT.FORM.CONTENT.PLACEHOLDER')"
|
||||||
|
@blur="$v.content.$touch"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<div class="medium-12 columns">
|
<div class="medium-12 columns">
|
||||||
@@ -149,5 +149,17 @@ export default {
|
|||||||
.ProseMirror-menubar {
|
.ProseMirror-menubar {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ProseMirror-woot-style {
|
||||||
|
min-height: 20rem;
|
||||||
|
|
||||||
|
p {
|
||||||
|
font-size: var(--font-size-default);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.message-editor {
|
||||||
|
border: 1px solid var(--s-200);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user