Message ID | 20210711182213.34-1-hofmann@leo-andres.de |
---|---|
State | Accepted |
Commit | 3cc3edeca4254b8bdff0f45c707f65d4f8f757a2 |
Headers |
Return-Path: <development-bounces@lists.ipfire.org> Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4GNFcZ2BLSz3xCm for <patchwork@web04.haj.ipfire.org>; Sun, 11 Jul 2021 18:22:38 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4GNFcY26hZz14j; Sun, 11 Jul 2021 18:22:37 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4GNFcY0KPQz2xnh; Sun, 11 Jul 2021 18:22:37 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4GNFcW2w4cz2xQm for <development@lists.ipfire.org>; Sun, 11 Jul 2021 18:22:35 +0000 (UTC) Received: from arche.uberspace.de (arche.uberspace.de [185.26.156.147]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPS id 4GNFcP6TLyzwd for <development@lists.ipfire.org>; Sun, 11 Jul 2021 18:22:29 +0000 (UTC) Received: (qmail 28732 invoked from network); 11 Jul 2021 18:22:29 -0000 Received: from localhost (HELO localhost) (127.0.0.1) by arche.uberspace.de with SMTP; 11 Jul 2021 18:22:29 -0000 From: Leo-Andres Hofmann <hofmann@leo-andres.de> To: development@lists.ipfire.org Subject: [PATCH] RRD graphs: Remove padding around graph images Date: Sun, 11 Jul 2021 20:22:12 +0200 Message-Id: <20210711182213.34-1-hofmann@leo-andres.de> X-Mailer: git-send-email 2.27.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.ipfire.org; s=202003rsa; t=1626027750; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=0O1yj/NrfcSXbImfCcOZrur4+N9qiyR6rLQetrMM1WA=; b=VWriDlV56r+FY6kTvzeZfCBJAF2u+y6IGy8QIYJi0UvxZyDc3J1pMfLv9jN9qYtR9zy32Z +ZkEoMq5mwbSV0IzV6Wcob8rNH6PCTYOeqocCCEk3p2HHwrs+G0pawEEltamvH/RRWUXtM 0YNs734/4ioFfM4+TwMGZI3p2xDifB39eJOniBp3CVr/jnoqrZHg8+bhaje7mIOgZwgddf LhGizlZGdOxSI7AuI3rjSXR6w4Qs/B0QokYmuQ8+xMQC+cxP1vjF8PS26YSnjlXGO+pYDo nuSEXNDKpvSjvsq7GfkxGx9JRduf3Kn7MsPGZyxd70DyoVa4BFSYlhn790cO2w== ARC-Seal: i=1; s=202003rsa; d=lists.ipfire.org; t=1626027750; a=rsa-sha256; cv=none; b=Itrz4fUZEBZZvn0XYZ0xB8pnWazF+lrSyA/tVb53X8N2a7mEKSbOBzOxQt17m1bpOz12rc Q5wdq8xH2txOk0Wu6s+rKwuXBd9+PbxdpvTf/TtEPrLMXWUPaEg2J0FLoy/wRo4ntmo8IO hX/PuAsv73LWCdd+mBG6vIj+WAxqOQjrACyeuUgrdBHN2rWjXrdbpNy4CGKMZCNktrKPg5 OQdkDBW0/JzUN6lLkpGXV6pOaBnMLGh71Spuou2eC51Vc8b9eC/KeQLFgooOgxCggShohT 9apA7lxEd3u8PnTKaus4CglXOIH4BPZPeLb2A7YcoSAiqJKjVQh0qJ6G3wRkZQ== ARC-Authentication-Results: i=1; mail01.ipfire.org; dkim=none; spf=pass (mail01.ipfire.org: domain of hofmann@leo-andres.de designates 185.26.156.147 as permitted sender) smtp.mailfrom=hofmann@leo-andres.de Authentication-Results: mail01.ipfire.org; dkim=none; dmarc=none; spf=pass (mail01.ipfire.org: domain of hofmann@leo-andres.de designates 185.26.156.147 as permitted sender) smtp.mailfrom=hofmann@leo-andres.de X-Rspamd-Server: mail01.haj.ipfire.org X-Spamd-Result: default: False [1.43 / 11.00]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; MX_INVALID(0.50)[]; FROM_HAS_DN(0.00)[]; SPF_REPUTATION_HAM(-0.76)[-0.76054977954357]; R_MISSING_CHARSET(2.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; BROKEN_CONTENT_TYPE(1.50)[]; RCPT_COUNT_ONE(0.00)[1]; ARC_SIGNED(0.00)[lists.ipfire.org:s=202003rsa:i=1]; IP_REPUTATION_HAM(-0.01)[asn: 205766(0.00), country: DE(-0.01), ip: 185.26.156.147(0.00)]; MID_CONTAINS_FROM(1.00)[]; R_SPF_ALLOW(-0.20)[+mx]; DMARC_NA(0.00)[leo-andres.de]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:205766, ipnet:185.26.156.0/24, country:DE]; RCVD_COUNT_TWO(0.00)[2]; BAYES_HAM(-3.00)[99.99%] X-Rspamd-Queue-Id: 4GNFcP6TLyzwd X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk <development.lists.ipfire.org> List-Unsubscribe: <https://lists.ipfire.org/mailman/options/development>, <mailto:development-request@lists.ipfire.org?subject=unsubscribe> List-Archive: <http://lists.ipfire.org/pipermail/development/> List-Post: <mailto:development@lists.ipfire.org> List-Help: <mailto:development-request@lists.ipfire.org?subject=help> List-Subscribe: <https://lists.ipfire.org/mailman/listinfo/development>, <mailto:development-request@lists.ipfire.org?subject=subscribe> Errors-To: development-bounces@lists.ipfire.org Sender: "Development" <development-bounces@lists.ipfire.org> |
Series |
RRD graphs: Remove padding around graph images
|
|
Commit Message
Leo-Andres Hofmann
July 11, 2021, 6:22 p.m. UTC
The images inherited padding from the general design and
have been resized to fit the layout, resulting in blurred graphs.
This removes the padding and shows the graphs in full size.
Fixes: #12657
Signed-off-by: Leo-Andres Hofmann <hofmann@leo-andres.de>
---
html/html/themes/ipfire/include/css/style.css | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Hello, This looks like a valid fix: Reviewed-by: Michael Tremer <michael.tremer@ipfire.org> Would it be a good consideration to render the graphs in SVG format instead? That way they could never be blurry because it is a vector graphic. Best, -Michael > On 11 Jul 2021, at 19:22, Leo-Andres Hofmann <hofmann@leo-andres.de> wrote: > > The images inherited padding from the general design and > have been resized to fit the layout, resulting in blurred graphs. > This removes the padding and shows the graphs in full size. > > Fixes: #12657 > > Signed-off-by: Leo-Andres Hofmann <hofmann@leo-andres.de> > --- > html/html/themes/ipfire/include/css/style.css | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/html/html/themes/ipfire/include/css/style.css b/html/html/themes/ipfire/include/css/style.css > index 2c727a770..b92f476c4 100644 > --- a/html/html/themes/ipfire/include/css/style.css > +++ b/html/html/themes/ipfire/include/css/style.css > @@ -359,7 +359,7 @@ div.rrdimage > ul { > } > > div.rrdimage > img { > - box-sizing: border-box; > + padding: 0; > max-width: 100%; > min-height: 290px; > } > -- > 2.27.0.windows.1 >
Hi Michael, thank you for reviewing this. I think that's a good idea, I'll give it a try. Regards Leo Am 14.07.2021 um 18:31 schrieb Michael Tremer: > Hello, > > This looks like a valid fix: > > Reviewed-by: Michael Tremer <michael.tremer@ipfire.org> > > Would it be a good consideration to render the graphs in SVG format instead? That way they could never be blurry because it is a vector graphic. > > Best, > -Michael > >> On 11 Jul 2021, at 19:22, Leo-Andres Hofmann <hofmann@leo-andres.de> wrote: >> >> The images inherited padding from the general design and >> have been resized to fit the layout, resulting in blurred graphs. >> This removes the padding and shows the graphs in full size. >> >> Fixes: #12657 >> >> Signed-off-by: Leo-Andres Hofmann <hofmann@leo-andres.de> >> --- >> html/html/themes/ipfire/include/css/style.css | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/html/html/themes/ipfire/include/css/style.css b/html/html/themes/ipfire/include/css/style.css >> index 2c727a770..b92f476c4 100644 >> --- a/html/html/themes/ipfire/include/css/style.css >> +++ b/html/html/themes/ipfire/include/css/style.css >> @@ -359,7 +359,7 @@ div.rrdimage > ul { >> } >> >> div.rrdimage > img { >> - box-sizing: border-box; >> + padding: 0; >> max-width: 100%; >> min-height: 290px; >> } >> -- >> 2.27.0.windows.1 >>
diff --git a/html/html/themes/ipfire/include/css/style.css b/html/html/themes/ipfire/include/css/style.css index 2c727a770..b92f476c4 100644 --- a/html/html/themes/ipfire/include/css/style.css +++ b/html/html/themes/ipfire/include/css/style.css @@ -359,7 +359,7 @@ div.rrdimage > ul { } div.rrdimage > img { - box-sizing: border-box; + padding: 0; max-width: 100%; min-height: 290px; }