public inbox for yew-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Stefan Hanreich <s.hanreich@proxmox.com>
To: yew-devel@lists.proxmox.com
Subject: [yew-devel] [PATCH proxmox-yew-widget-toolkit 1/1] space: fix space calculation for pwt units
Date: Thu, 30 Jan 2025 19:29:26 +0100	[thread overview]
Message-ID: <20250130182926.370844-1-s.hanreich@proxmox.com> (raw)

The px here is unnecessary and causes the calc expression to be
invalid. Since pwt-spacer-base-width is already defined in px we can
simply remove it.

Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
---
 src/props/pwt_space.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/props/pwt_space.rs b/src/props/pwt_space.rs
index 6ea6cd4..c829796 100644
--- a/src/props/pwt_space.rs
+++ b/src/props/pwt_space.rs
@@ -13,7 +13,7 @@ pub enum PwtSpace {
 impl std::fmt::Display for PwtSpace {
     fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
         match self {
-            PwtSpace::Pwt(v) => write!(f, "calc({v} * var(--pwt-spacer-base-width))px"),
+            PwtSpace::Pwt(v) => write!(f, "calc({v} * var(--pwt-spacer-base-width))"),
             PwtSpace::Px(v) => write!(f, "{v}px"),
             PwtSpace::Em(v) => write!(f, "{v}em"),
             PwtSpace::Fraction(v) => write!(f, "{}%", v * 100.0),
-- 
2.39.5


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


             reply	other threads:[~2025-01-30 18:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-30 18:29 Stefan Hanreich [this message]
2025-01-31  8:10 ` [yew-devel] applied: " Dietmar Maurer
2025-01-31  9:31 ` [yew-devel] " Thomas Lamprecht
2025-01-31  9:33   ` Stefan Hanreich

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=20250130182926.370844-1-s.hanreich@proxmox.com \
    --to=s.hanreich@proxmox.com \
    --cc=yew-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