From: Dominik Csapak <d.csapak@proxmox.com>
To: pmg-devel@lists.proxmox.com
Subject: [PATCH yew-comp 1/3] markdown: correctly set css class
Date: Tue, 2 Jun 2026 13:53:40 +0200 [thread overview]
Message-ID: <20260602115348.2333552-2-d.csapak@proxmox.com> (raw)
In-Reply-To: <20260602115348.2333552-1-d.csapak@proxmox.com>
To actually set the 'pwt-embedded-html' css class (which contains the
rules for rendering the parsed markdown html), it has to be set *after*
`with_std_props`, otherwise it's overwritten by an empty class list from
the standard props.
This did not surface until yet, because the notes view, which shows
parsed markdown too, does set the class manually.
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
src/markdown.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/markdown.rs b/src/markdown.rs
index be7146e..164a8a0 100644
--- a/src/markdown.rs
+++ b/src/markdown.rs
@@ -216,9 +216,9 @@ impl Component for ProxmoxMarkdown {
fn view(&self, ctx: &Context<Self>) -> Html {
let props = ctx.props();
Container::new()
- .class("pwt-embedded-html")
.with_std_props(&props.std_props)
.listeners(&props.listeners)
+ .class("pwt-embedded-html")
.with_child(self.html.clone())
.into()
}
--
2.47.3
next prev parent reply other threads:[~2026-06-02 11:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-02 11:53 [PATCH pmg-yew-quarantine-gui/yew-comp 0/3] add about text to pmg mobile quarantine Dominik Csapak
2026-06-02 11:53 ` Dominik Csapak [this message]
2026-06-02 11:53 ` [PATCH pmg-yew-quarantine-gui 2/3] spam list page: factor `link` out Dominik Csapak
2026-06-02 11:53 ` [PATCH pmg-yew-quarantine-gui 3/3] spam list page: add 'about' button to menu Dominik Csapak
2026-06-02 20:50 ` applied: [PATCH pmg-yew-quarantine-gui/yew-comp 0/3] add about text to pmg mobile quarantine Thomas Lamprecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260602115348.2333552-2-d.csapak@proxmox.com \
--to=d.csapak@proxmox.com \
--cc=pmg-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.