Bug: Adds support multiline text input on article edit page (#5465)
* Bug: Scroll issue with article list page * Adds support multiline text input on article edit page
This commit is contained in:
parent
1761100c77
commit
d28502b917
4 changed files with 9 additions and 3 deletions
|
@ -1,8 +1,9 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="edit-article--container">
|
<div class="edit-article--container">
|
||||||
<input
|
<resizable-text-area
|
||||||
v-model="articleTitle"
|
v-model="articleTitle"
|
||||||
type="text"
|
type="text"
|
||||||
|
rows="1"
|
||||||
class="article-heading"
|
class="article-heading"
|
||||||
:placeholder="$t('HELP_CENTER.EDIT_ARTICLE.TITLE_PLACEHOLDER')"
|
:placeholder="$t('HELP_CENTER.EDIT_ARTICLE.TITLE_PLACEHOLDER')"
|
||||||
@focus="onFocus"
|
@focus="onFocus"
|
||||||
|
@ -23,11 +24,13 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { debounce } from '@chatwoot/utils';
|
import { debounce } from '@chatwoot/utils';
|
||||||
|
import ResizableTextArea from 'shared/components/ResizableTextArea';
|
||||||
import WootMessageEditor from 'dashboard/components/widgets/WootWriter/Editor.vue';
|
import WootMessageEditor from 'dashboard/components/widgets/WootWriter/Editor.vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
WootMessageEditor,
|
WootMessageEditor,
|
||||||
|
ResizableTextArea,
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
article: {
|
article: {
|
||||||
|
@ -83,7 +86,8 @@ export default {
|
||||||
font-size: var(--font-size-giga);
|
font-size: var(--font-size-giga);
|
||||||
font-weight: var(--font-weight-bold);
|
font-weight: var(--font-weight-bold);
|
||||||
min-height: var(--space-jumbo);
|
min-height: var(--space-jumbo);
|
||||||
max-height: var(--space-jumbo);
|
max-height: 64rem;
|
||||||
|
height: auto;
|
||||||
border: 0px solid transparent;
|
border: 0px solid transparent;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
color: var(--s-900);
|
color: var(--s-900);
|
||||||
|
|
|
@ -149,6 +149,7 @@ export default {
|
||||||
.container {
|
.container {
|
||||||
padding: 0 var(--space-normal);
|
padding: 0 var(--space-normal);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
overflow: auto;
|
||||||
.articles--loader {
|
.articles--loader {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
|
@ -126,5 +126,6 @@ export default {
|
||||||
}
|
}
|
||||||
.is-sidebar-open {
|
.is-sidebar-open {
|
||||||
flex: 0.7;
|
flex: 0.7;
|
||||||
|
flex-grow: 1;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
</div>
|
</div>
|
||||||
<% else %>
|
<% else %>
|
||||||
<% category.articles.published.take(5).each do |article| %>
|
<% category.articles.published.take(5).each do |article| %>
|
||||||
<div class="flex justify-between content-center h-8 my-1">
|
<div class="flex justify-between content-center min:h-8 my-1">
|
||||||
<a
|
<a
|
||||||
class="text-slate-800 hover:underline leading-8"
|
class="text-slate-800 hover:underline leading-8"
|
||||||
href="/hc/<%= portal.slug %>/<%= category.locale %>/<%= category.slug %>/<%= article.id %>"
|
href="/hc/<%= portal.slug %>/<%= category.locale %>/<%= category.slug %>/<%= article.id %>"
|
||||||
|
|
Loading…
Reference in a new issue