diff --git a/src/static/css/style.css b/src/static/css/style.css index 6bc1e3d..4f9ccb6 100644 --- a/src/static/css/style.css +++ b/src/static/css/style.css @@ -59,13 +59,31 @@ aside button { } aside textarea { + /* config of what the textarea looks like */ min-width: 40em; min-height: 15em; - font-size: xx-large; + resize: none; + overflow: hidden; +} - /* move resize arrow to the left */ - direction: rtl; - text-align: left; +aside div { + /* mandotory for the reactive textarea */ + display: grid; +} + +aside div::after { + /* update the content of the textarea */ + content: attr(data-replicated-value) " "; + white-space: pre-wrap; + visibility: hidden; +} + +aside div > textarea, +aside div::after { + /* textarea position after new input */ + padding: 0.5rem; + font-size: xx-large; + grid-area: 1 / 1 / 2 / 2; } /* breakpoint */ diff --git a/src/templates/post.html b/src/templates/post.html index 835aabd..86b498c 100644 --- a/src/templates/post.html +++ b/src/templates/post.html @@ -3,7 +3,14 @@ action="{{ config.sanitized_base() }}/{% if name %}{{ post_file_id(name) }}{% endif %}" method="post" > - +
+ +