fix word-counter input/textarea style

This commit is contained in:
Alexis Gousseau 2023-06-19 10:53:43 +02:00
parent 5a82f295a0
commit 524fa4fd6e
4 changed files with 7 additions and 10 deletions

View file

@ -1,7 +1,3 @@
.need-word-counter {
border-radius: 0 0 0.375rem 0.375rem !important;
}
.image-preview {
max-height: 60px;
}

View file

@ -6,7 +6,7 @@
<textarea
ref="textarea"
:id="intId"
:class="`input-text-auto-component need-word-counter ${intClass}`"
:class="`input-text-auto-component ${intClass}`"
:name="intName"
:aria-describedby="intAriaDescribedby"
:placeholder="intPlaceholder"

View file

@ -108,7 +108,11 @@ export default defineComponent({
<style lang="scss">
#word-counter + input[type="text"],
.word-counter + input[type="text"] {
.word-counter + input[type="text"],
#word-counter + textarea,
.word-counter + textarea,
#word-counter-varchar + textarea,
.word-counter-varchar + textarea {
border-radius: 0 0 0.375rem 0.375rem;
}
.word-counter-varchar {

View file

@ -9,10 +9,7 @@
<input name="{{ $name }}"
type="text"
value="{{ old($name, $model->{$name} ?? $value ?? '') }}"
class="form-control
@if(!empty($hasWordCounter ?? false))
need-word-counter
@endif"
class="form-control"
id="{{ $id }}"
aria-describedby="{{ $id }}Help"
placeholder="{{ $placeholder ?? __('A beautiful title') }}"