diff options
author | grunfink <grunfink@noreply.codeberg.org> | 2024-02-24 06:39:59 +0000 |
---|---|---|
committer | grunfink <grunfink@noreply.codeberg.org> | 2024-02-24 06:39:59 +0000 |
commit | 8126fb97ce1636e027a5858e72cf6d1d1d62670f (patch) | |
tree | af0c23df0a6c7285bd5057501a5683179d442558 | |
parent | 145e6623391b6f2cc64101c59d9000f3353b2302 (diff) | |
parent | d42aaa19e418ee89f25e9e33f8ab7d304fff0386 (diff) |
Merge pull request 'html.c: html_user_body: snac-property: Put (empty space) instead of <br> & other' (#142) from Yonle/snac2:master into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/142
-rw-r--r-- | doc/style.css | 2 | ||||
-rw-r--r-- | html.c | 2 | ||||
-rw-r--r-- | utils.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/doc/style.css b/doc/style.css index b1f2163..a133db6 100644 --- a/doc/style.css +++ b/doc/style.css @@ -26,7 +26,7 @@ pre { overflow-x: scroll; } .snac-footer { margin-top: 2em; font-size: 75% } .snac-poll-result { margin-left: auto; margin-right: auto; } @media (prefers-color-scheme: dark) { - body { background-color: #000; color: #fff; } + body, input, textarea { background-color: #000; color: #fff; } a { color: #7799dd } a:visited { color: #aa99dd } } @@ -820,7 +820,7 @@ static xs_html *html_user_body(snac *user, int read_only) xs_html_attr("class", "snac-property-name"), xs_html_text(k)), xs_html_text(":"), - xs_html_sctag("br", NULL), + xs_html_raw(" "), xs_html_tag("span", xs_html_attr("class", "snac-property-value"), value), @@ -66,7 +66,7 @@ static const char *default_css = ".snac-footer { margin-top: 2em; font-size: 75% }\n" ".snac-poll-result { margin-left: auto; margin-right: auto; }\n" "@media (prefers-color-scheme: dark) { \n" - " body { background-color: #000; color: #fff; }\n" + " body, input, textarea { background-color: #000; color: #fff; }\n" " a { color: #7799dd }\n" " a:visited { color: #aa99dd }\n" "}\n" |