Add a character counter to the title
This commit is contained in:
parent
119f8c7447
commit
6a714f1a2a
1 changed files with 15 additions and 0 deletions
|
|
@ -16,6 +16,9 @@
|
|||
type="text"
|
||||
name="Playlist Name"
|
||||
>
|
||||
<span class="char_counter">
|
||||
{{ name.length }}/100
|
||||
</span>
|
||||
</div>
|
||||
<div class="input-row">
|
||||
<textarea-autosize
|
||||
|
|
@ -185,14 +188,26 @@ div.modal-form {
|
|||
display: flex;
|
||||
}
|
||||
|
||||
input#playlist-name {
|
||||
padding-right: 80px;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.input-row {
|
||||
justify-content: space-evenly;
|
||||
margin-bottom: 10px;
|
||||
position: relative;
|
||||
flex-wrap: wrap;
|
||||
display: flex;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.char_counter {
|
||||
position: absolute;
|
||||
bottom: 15px;
|
||||
right: 15px;
|
||||
}
|
||||
|
||||
button {
|
||||
margin: 10px;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue