diff mbox series

[qemu-web] css: avoid over-large images

Message ID 20171122163733.4007-1-pbonzini@redhat.com
State New
Headers show
Series [qemu-web] css: avoid over-large images | expand

Commit Message

Paolo Bonzini Nov. 22, 2017, 4:37 p.m. UTC
Make sure that images are scaled to fit inside their container.

Tested-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 assets/css/style.css | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Christian Borntraeger Nov. 22, 2017, 4:48 p.m. UTC | #1
On 11/22/2017 05:37 PM, Paolo Bonzini wrote:
> Make sure that images are scaled to fit inside their container.

Thanks God. I was thinking "what is wrong with the channel subsystem in QEMU?" when
reading your subject.....
 
> Tested-by: Thomas Huth <thuth@redhat.com>
> Reviewed-by: Thomas Huth <thuth@redhat.com>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
>  assets/css/style.css | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/assets/css/style.css b/assets/css/style.css
> index 2d4fe0c..b828887 100644
> --- a/assets/css/style.css
> +++ b/assets/css/style.css
> @@ -200,6 +200,10 @@
> 
>  	/* Images */
> 
> +		img {
> +			max-width: 100%;
> +		}
> +
>  		.image
>  		{
>  			display: inline-block;
>
Cornelia Huck Nov. 22, 2017, 4:53 p.m. UTC | #2
On Wed, 22 Nov 2017 17:48:28 +0100
Christian Borntraeger <borntraeger@de.ibm.com> wrote:

> On 11/22/2017 05:37 PM, Paolo Bonzini wrote:
> > Make sure that images are scaled to fit inside their container.  
> 
> Thanks God. I was thinking "what is wrong with the channel subsystem in QEMU?" when
> reading your subject.....

Me too. Hurray for overloaded TLAs ;)

>  
> > Tested-by: Thomas Huth <thuth@redhat.com>
> > Reviewed-by: Thomas Huth <thuth@redhat.com>
> > Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> > ---
> >  assets/css/style.css | 4 ++++
> >  1 file changed, 4 insertions(+)
> > 
> > diff --git a/assets/css/style.css b/assets/css/style.css
> > index 2d4fe0c..b828887 100644
> > --- a/assets/css/style.css
> > +++ b/assets/css/style.css
> > @@ -200,6 +200,10 @@
> > 
> >  	/* Images */
> > 
> > +		img {
> > +			max-width: 100%;
> > +		}
> > +
> >  		.image
> >  		{
> >  			display: inline-block;
> >   
> 
>
diff mbox series

Patch

diff --git a/assets/css/style.css b/assets/css/style.css
index 2d4fe0c..b828887 100644
--- a/assets/css/style.css
+++ b/assets/css/style.css
@@ -200,6 +200,10 @@ 
 
 	/* Images */
 
+		img {
+			max-width: 100%;
+		}
+
 		.image
 		{
 			display: inline-block;