Post textbox tweaks

- Moves them closer to eachother
- Makes the extended textbox shorter by default
- Removes the ability to manually resize the extended textbox
This commit is contained in:
MatthiasSaihttam 2020-11-17 17:08:59 -05:00
parent 814228ce0a
commit 124994b01a
2 changed files with 5 additions and 6 deletions

View File

@ -11,10 +11,8 @@ textarea.thought {
font-family: inherit;
border-bottom: 1px solid var(--accent-color);
border-radius: 0;
}
.thought#extended_text {
resize: vertical;
overflow-x: hidden;
display: block;
}
#post-button {

View File

@ -24,7 +24,7 @@
<form action="{% url 'post'%}" method="post">
{% csrf_token %}
<textarea name="text" id="text" class="thought" rows="1" placeholder="What are you thinking?"></textarea>
<textarea name="extended_text" id="extended_text" class="thought" rows="4"></textarea>
<textarea name="extended_text" id="extended_text" class="thought" rows="2"></textarea>
<input type="hidden" name="timezone_offset" id="timezone_offset">
<input type="submit" id="post-button" value="Submit">
@ -64,7 +64,8 @@
}
// TODO: Auto-set width of short text box
//textEl.style.width = "auto";
//textEl.style.width = textEl.scrollWidth + "px";
});
const textboxes = document.getElementsByClassName("thought");