all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Shannon Sterz <s.sterz@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH yew-mobile-gui 1/1] page login: render consent text as markdown
Date: Thu,  9 Oct 2025 11:42:27 +0200	[thread overview]
Message-ID: <20251009094227.109150-2-s.sterz@proxmox.com> (raw)
In-Reply-To: <20251009094227.109150-1-s.sterz@proxmox.com>

to match the behaviour of the extjs consent text banner

Signed-off-by: Shannon Sterz <s.sterz@proxmox.com>
---
 src/pages/page_login.rs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/pages/page_login.rs b/src/pages/page_login.rs
index 8b59421..c23b2f9 100644
--- a/src/pages/page_login.rs
+++ b/src/pages/page_login.rs
@@ -5,11 +5,11 @@ use yew::prelude::*;
 use yew::virtual_dom::{VComp, VNode};
 
 use pwt::prelude::*;
-use pwt::widget::{Button, Column, Container, Row};
+use pwt::widget::{Button, Column, Row};
 
 use crate::widgets::TopNavBar;
 
-use proxmox_yew_comp::LoginPanel;
+use proxmox_yew_comp::{LoginPanel, Markdown};
 
 use proxmox_login::Authentication;
 
@@ -74,7 +74,7 @@ impl Component for PvePageLogin {
                     Column::new()
                         .padding(2)
                         .gap(2)
-                        .with_child(Container::from_tag("p").with_child(consent_text))
+                        .with_child(Markdown::new().text(consent_text))
                         .with_child(
                             Row::new().with_flex_spacer().with_child(
                                 Button::new(tr!("OK"))
-- 
2.47.3



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


      reply	other threads:[~2025-10-09  9:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-09  9:42 [pve-devel] [PATCH yew-mobile-gui 0/1] " Shannon Sterz
2025-10-09  9:42 ` Shannon Sterz [this message]

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=20251009094227.109150-2-s.sterz@proxmox.com \
    --to=s.sterz@proxmox.com \
    --cc=pve-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.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal