Skip to content

Commit

Permalink
Merge pull request #2049 from PiranhaCMS/feature/extend-max-length-of…
Browse files Browse the repository at this point in the history
…-page-excerpt

Extend max length of Page Excerpt
  • Loading branch information
tidyui authored Mar 6, 2024
2 parents caa019c + 4aee98b commit 1a2eb20
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,14 @@
<div class="content-blocker"></div>
</div>
<div v-else class="position-relative" :class="{ readonly: isCopy }">
<textarea v-model="excerpt" rows="5" maxlength="255" class="form-control"></textarea>
<div class="input-group below">
<textarea v-model="excerpt" rows="5" maxlength="1000" class="form-control"></textarea>
<div class="input-group-append">
<div class="input-group-text text-muted">
{{ piranha.utils.strLength(excerpt) + "/1000" }}
</div>
</div>
</div>
<div class="content-blocker"></div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,14 @@
<div id="excerpt-body" class="block-body html-block" contenteditable="true" v-html="excerpt" v-on:blur="onExcerptBlur">
</div>
</div>
<textarea v-else v-model="excerpt" rows="5" maxlength="1000" class="form-control"></textarea>
<div v-else class="input-group below">
<textarea v-model="excerpt" rows="5" maxlength="1000" class="form-control"></textarea>
<div class="input-group-append">
<div class="input-group-text text-muted">
{{ piranha.utils.strLength(excerpt) + "/1000" }}
</div>
</div>
</div>
</div>
</div>

Expand Down
4 changes: 2 additions & 2 deletions core/Piranha.Manager/assets/dist/css/full.min.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions core/Piranha.Manager/assets/dist/css/slim.min.css

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions core/Piranha.Manager/assets/src/scss/inc/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,19 @@
}
}
}

&.below {
flex-direction: column;

.input-group-append {
margin-left: 0;

.input-group-text {
width: 100%;
border-top: 0 none;
}
}
}
}

.list-group {
Expand Down

0 comments on commit 1a2eb20

Please sign in to comment.