Fix text area width on chrome
This commit is contained in:
parent
fc56be9466
commit
d09063b3f3
2 changed files with 6 additions and 10 deletions
|
|
@ -43,12 +43,10 @@ function submit() {
|
|||
</label>
|
||||
|
||||
<label for="content">Content:</label>
|
||||
<!-- For some reason one col = 2 characters. -->
|
||||
<textarea
|
||||
id="content"
|
||||
v-model="content"
|
||||
rows="10"
|
||||
cols="24"
|
||||
:disabled
|
||||
@keypress="textareaKeypress"
|
||||
></textarea>
|
||||
|
|
@ -71,11 +69,11 @@ textarea {
|
|||
margin-top: -16px;
|
||||
|
||||
align-self: center;
|
||||
width: fit-content;
|
||||
width: 384px;
|
||||
|
||||
/* Prevent manual resizing from changing the width. */
|
||||
min-width: fit-content;
|
||||
max-width: fit-content;
|
||||
min-width: 384px;
|
||||
max-width: 384px;
|
||||
|
||||
/* Emulate how typst wraps text. */
|
||||
overflow-wrap: normal;
|
||||
|
|
|
|||
|
|
@ -35,11 +35,9 @@ function submit() {
|
|||
<form ref="form" @submit.prevent="submit">
|
||||
<h2>Text</h2>
|
||||
|
||||
<!-- For some reason one col = 2 characters. -->
|
||||
<textarea
|
||||
v-model="text"
|
||||
rows="10"
|
||||
cols="24"
|
||||
:style="textareaStyle"
|
||||
:disabled
|
||||
@keypress="textareaKeypress"
|
||||
|
|
@ -67,11 +65,11 @@ form {
|
|||
|
||||
textarea {
|
||||
align-self: center;
|
||||
width: fit-content;
|
||||
width: 384px;
|
||||
|
||||
/* Prevent manual resizing from changing the width. */
|
||||
min-width: fit-content;
|
||||
max-width: fit-content;
|
||||
min-width: 384px;
|
||||
max-width: 384px;
|
||||
}
|
||||
|
||||
.wide {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue