mirror of
https://github.com/wekan/wekan.git
synced 2025-12-17 07:50:12 +01:00
Dynamically resize the new card form if the title is too long
This commit is contained in:
parent
480ef63273
commit
0954ef3e44
2 changed files with 8 additions and 2 deletions
|
|
@ -133,5 +133,6 @@
|
||||||
margin: 0
|
margin: 0
|
||||||
padding: 0
|
padding: 0
|
||||||
max-height: 162px
|
max-height: 162px
|
||||||
min-height: 54px
|
min-height: 36px
|
||||||
|
margin-bottom: 20px
|
||||||
overflow-y: auto
|
overflow-y: auto
|
||||||
|
|
|
||||||
|
|
@ -57,6 +57,7 @@ BlazeComponent.extendComponent({
|
||||||
|
|
||||||
// We keep the form opened, empty it, and scroll to it.
|
// We keep the form opened, empty it, and scroll to it.
|
||||||
textarea.val('').focus();
|
textarea.val('').focus();
|
||||||
|
autosize.update(textarea);
|
||||||
if (position === 'bottom') {
|
if (position === 'bottom') {
|
||||||
this.scrollToBottom();
|
this.scrollToBottom();
|
||||||
}
|
}
|
||||||
|
|
@ -180,7 +181,11 @@ BlazeComponent.extendComponent({
|
||||||
|
|
||||||
onRendered() {
|
onRendered() {
|
||||||
const editor = this;
|
const editor = this;
|
||||||
this.$('textarea').escapeableTextComplete([
|
const $textarea = this.$('textarea');
|
||||||
|
|
||||||
|
autosize($textarea);
|
||||||
|
|
||||||
|
$textarea.escapeableTextComplete([
|
||||||
// User mentions
|
// User mentions
|
||||||
{
|
{
|
||||||
match: /\B@(\w*)$/,
|
match: /\B@(\w*)$/,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue