Skip to content

Commit 7edc375

Browse files
Merge pull request #5844 from Countly/content-validation
fix: added maxlength to title field in Content
2 parents e108f11 + 79027d9 commit 7edc375

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

frontend/express/public/javascripts/countly/vue/components/content.js

+5
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@
6262
return [];
6363
}
6464
},
65+
titleMaxLength: {
66+
type: Number,
67+
required: false,
68+
default: 50
69+
},
6570
status: {
6671
type: Object,
6772
required: false,

frontend/express/public/javascripts/countly/vue/templates/content/content-header.html

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ <h4 class="has-ellipsis" v-tooltip="localTitle && localTitle.length > 30 ? local
2121
v-else
2222
class="bu-mb-2 cly-vue-content-builder__layout-header__info-title__input"
2323
v-model="localTitle"
24+
:maxlength="titleMaxLength"
2425
@blur="finishEditing"
2526
@keydown.enter.native="finishEditing"
2627
/>

frontend/express/public/stylesheets/vue/clyvue.scss

+1
Original file line numberDiff line numberDiff line change
@@ -4409,6 +4409,7 @@
44094409
min-height: calc(100vh - 106px);
44104410

44114411
&__body {
4412+
border-radius: 8px;
44124413
display: flex;
44134414
justify-content: space-between;
44144415

0 commit comments

Comments
 (0)