public inbox for pdm-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Dietmar Maurer <dietmar@proxmox.com>
To: pdm-devel@lists.proxmox.com
Subject: [pdm-devel] [PATCH datacenter-manager 3/4] ui: qemu: cleanup: avoid "use pwt::css::XYZ" imports
Date: Wed, 15 Oct 2025 10:15:23 +0200	[thread overview]
Message-ID: <20251015081524.2863240-3-dietmar@proxmox.com> (raw)
In-Reply-To: <20251015081524.2863240-1-dietmar@proxmox.com>

The prefix "pwt::css::" is short enough to use inline.

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
---
 ui/src/pve/qemu/overview.rs | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/ui/src/pve/qemu/overview.rs b/ui/src/pve/qemu/overview.rs
index d9d53c1..62efbae 100644
--- a/ui/src/pve/qemu/overview.rs
+++ b/ui/src/pve/qemu/overview.rs
@@ -7,7 +7,6 @@ use yew::virtual_dom::{VComp, VNode};
 use proxmox_human_byte::HumanByte;
 use proxmox_yew_comp::{RRDGraph, RRDTimeframe, RRDTimeframeSelector, Series};
 
-use pwt::css::{AlignItems, ColorScheme, FlexFit, JustifyContent};
 use pwt::prelude::*;
 use pwt::props::WidgetBuilder;
 use pwt::widget::{Column, Container, Panel, Progress, Row};
@@ -346,8 +345,8 @@ impl yew::Component for QemuOverviewPanelComp {
 
         let loading = self.status.is_none() && self.last_status_error.is_none();
         Panel::new()
-            .class(FlexFit)
-            .class(ColorScheme::Neutral)
+            .class(pwt::css::FlexFit)
+            .class(pwt::css::ColorScheme::Neutral)
             .with_child(
                 // FIXME: add some 'visible' or 'active' property to the progress
                 Progress::new()
@@ -360,14 +359,14 @@ impl yew::Component for QemuOverviewPanelComp {
                 Row::new()
                     .padding_x(4)
                     .padding_y(1)
-                    .class(JustifyContent::FlexEnd)
+                    .class(pwt::css::JustifyContent::FlexEnd)
                     .with_child(
                         RRDTimeframeSelector::new()
                             .on_change(ctx.link().callback(Msg::UpdateRrdTimeframe)),
                     ),
             )
             .with_child(
-                Container::new().class(FlexFit).with_child(
+                Container::new().class(pwt::css::FlexFit).with_child(
                     Column::new()
                         .padding(4)
                         .gap(4)
-- 
2.47.3


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


  parent reply	other threads:[~2025-10-15  8:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-15  8:15 [pdm-devel] [PATCH datacenter-manager 1/4] ui: qemu: move files into subfolder, add Tabbar on top Dietmar Maurer
2025-10-15  8:15 ` [pdm-devel] [PATCH datacenter-manager 2/4] ui: qemu: cleanup: use module level imports Dietmar Maurer
2025-10-15  8:15 ` Dietmar Maurer [this message]
2025-10-15  8:15 ` [pdm-devel] [PATCH datacenter-manager 4/4] ui: qemu: remove wrong PartialEq implementation Dietmar Maurer
2025-10-16 22:17 ` [pdm-devel] [PATCH datacenter-manager 1/4] ui: qemu: move files into subfolder, add Tabbar on top Thomas Lamprecht
2025-10-22  5:18 ` [pdm-devel] applied: " 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=20251015081524.2863240-3-dietmar@proxmox.com \
    --to=dietmar@proxmox.com \
    --cc=pdm-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 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