public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH yew-mobile-gui v2] page login: render consent text as markdown
@ 2025-11-07  9:52 Shannon Sterz
  2025-11-07 11:25 ` [pve-devel] applied: " Dietmar Maurer
  0 siblings, 1 reply; 2+ messages in thread
From: Shannon Sterz @ 2025-11-07  9:52 UTC (permalink / raw)
  To: pve-devel

to match the behaviour of the extjs consent text banner

Signed-off-by: Shannon Sterz <s.sterz@proxmox.com>
---

Changes since v1:

- rebased on current master

 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 b595425..7875af3 100644
--- a/src/pages/page_login.rs
+++ b/src/pages/page_login.rs
@@ -5,12 +5,12 @@ 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::layout::card::standard_card;
-use proxmox_yew_comp::LoginPanel;
+use proxmox_yew_comp::{LoginPanel, Markdown};

 use proxmox_login::Authentication;

@@ -75,7 +75,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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-11-07 11:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-07  9:52 [pve-devel] [PATCH yew-mobile-gui v2] page login: render consent text as markdown Shannon Sterz
2025-11-07 11:25 ` [pve-devel] applied: " Dietmar Maurer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal