Message ID | 20171122163733.4007-1-pbonzini@redhat.com |
---|---|
State | New |
Headers | show |
Series | [qemu-web] css: avoid over-large images | expand |
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; >
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 --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;