[pdm-devel] [PATCH datacenter-manager 3/4] ui: qemu: cleanup: avoid "use pwt::css::XYZ" imports

Dietmar Maurer dietmar at proxmox.com
Wed Oct 15 10:15:23 CEST 2025


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

Signed-off-by: Dietmar Maurer <dietmar at 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




More information about the pdm-devel mailing list