From: Michael Tremer <michael.tremer@ipfire.org>
To: development@lists.ipfire.org
Subject: Re: [PATCH] RRD graphs: Remove padding around graph images
Date: Wed, 14 Jul 2021 17:31:10 +0100 [thread overview]
Message-ID: <6B3B8C0D-4394-4875-98C0-B6E06565F5C5@ipfire.org> (raw)
In-Reply-To: <20210711182213.34-1-hofmann@leo-andres.de>
[-- Attachment #1: Type: text/plain, Size: 1212 bytes --]
Hello,
This looks like a valid fix:
Reviewed-by: Michael Tremer <michael.tremer(a)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(a)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(a)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
>
next prev parent reply other threads:[~2021-07-14 16:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-11 18:22 Leo-Andres Hofmann
2021-07-14 16:31 ` Michael Tremer [this message]
2021-07-14 20:31 ` Leo Hofmann
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=6B3B8C0D-4394-4875-98C0-B6E06565F5C5@ipfire.org \
--to=michael.tremer@ipfire.org \
--cc=development@lists.ipfire.org \
/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