Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend max length of Page Excerpt #2049

Merged
merged 1 commit into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading