mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
fix some sizing issues: width/height wont scale down an image using now max-width/height instead
This commit is contained in:
parent
5496ce92cb
commit
6dbe75400e
@ -178,7 +178,7 @@ export class Et2Image extends Et2Widget(LitElement) implements et2_IDetachedDOM
|
||||
<img ${this.id ? html`id="${this.id}"` : ''}
|
||||
src="${url}"
|
||||
alt="${this.label || this.statustext}"
|
||||
style="${this.height ? 'height: 100%; width: auto' : 'width: 100%; height: auto'}"
|
||||
style="${this.height ? 'max-height: 100%; width: auto' : 'max-width: 100%; height: auto'}"
|
||||
part="image"
|
||||
loading="lazy"
|
||||
>`;
|
||||
|
Loading…
Reference in New Issue
Block a user