Monorepo for Tangled tangled.org

appview/pages: apply monospace font for all textarea #714

closed opened by boltless.me targeting master from push-rvkkksrxnpsv

monospace font for textarea in dev app is so common that we can just apply it as an opt-out style for all textareas

Signed-off-by: Seongmin Lee git@boltless.me

Labels

None yet.

assignee

None yet.

Participants 3
AT URI
at://did:plc:xasnlahkri4ewmbuzly2rlc5/sh.tangled.repo.pull/3m3uwkgummg22
+2 -2
Diff #0
+1 -1
appview/pages/templates/strings/fragments/form.html
··· 31 name="content" 32 id="content-textarea" 33 wrap="off" 34 - class="w-full dark:bg-gray-700 dark:text-white dark:border-gray-600 dark:placeholder-gray-400 font-mono" 35 rows="20" 36 spellcheck="false" 37 placeholder="Paste your string here!"
··· 31 name="content" 32 id="content-textarea" 33 wrap="off" 34 + class="w-full dark:bg-gray-700 dark:text-white dark:border-gray-600 dark:placeholder-gray-400" 35 rows="20" 36 spellcheck="false" 37 placeholder="Paste your string here!"
+1 -1
input.css
··· 96 @apply border border-gray-400 block rounded bg-gray-50 focus:ring-black p-3 dark:bg-gray-800 dark:border-gray-600 dark:text-white dark:focus:ring-gray-400; 97 } 98 textarea { 99 - @apply border border-gray-400 block rounded bg-gray-50 focus:ring-black p-3 dark:bg-gray-800 dark:border-gray-600 dark:text-white dark:focus:ring-gray-400; 100 } 101 details summary::-webkit-details-marker { 102 display: none;
··· 96 @apply border border-gray-400 block rounded bg-gray-50 focus:ring-black p-3 dark:bg-gray-800 dark:border-gray-600 dark:text-white dark:focus:ring-gray-400; 97 } 98 textarea { 99 + @apply border border-gray-400 block rounded bg-gray-50 focus:ring-black p-3 dark:bg-gray-800 dark:border-gray-600 dark:text-white dark:focus:ring-gray-400 font-mono; 100 } 101 details summary::-webkit-details-marker { 102 display: none;

History

1 round 4 comments
sign up or login to add to the discussion
boltless.me submitted #0
1 commit
expand
appview/pages: apply monospace font for all textarea
3/3 success
expand
expand 4 comments

Stylistically, I'm not sure I like this. I prefer non-monospaced font here but that's of course, my opinion. :)

IMO, this makes sense for inputs where code is involved (strings, patches), but not so much for comments etc.

I think it will make sense because comment text area is for markdown content, so technically it is also a code editor and not WYSIWYG style editor

Regardless, I think let's keep existing behavior. I'll close this patch.

closed without merging