Cap equipment height to a maximum

This commit is contained in:
Gabriel Augendre 2023-01-21 09:22:25 +01:00
parent 9ea7a9414b
commit ae843729de
2 changed files with 10 additions and 1 deletions

View file

@ -16,7 +16,7 @@
{% endif %}
<div class="card-body">
{% csrf_token %}
<textarea class="form-control" name="equipment" rows="10">{{ character.equipment }}</textarea>
<textarea class="form-control" name="equipment">{{ character.equipment }}</textarea>
</div>
<div class="card-footer">
<div class="row g-1">

View file

@ -22,3 +22,12 @@ img.profile-pic {
max-height: 240px;
object-fit: cover;
}
div#equipment .card-body {
max-height: 250px;
overflow-y: scroll;
}
form#equipment .card-body textarea {
height: 210px;
}