mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-24 14:58:52 +01:00
more work on et2-image to get it fill the whole container and getting Et2VfsMime (et2-vfs-mime) working again after et2-image changes
missing changes due to merge :(
This commit is contained in:
parent
cd5aba7b89
commit
127fa28f6d
@ -132,7 +132,9 @@ export class Et2Image extends Et2Widget(LitElement) implements et2_IDetachedDOM
|
|||||||
set height(_height)
|
set height(_height)
|
||||||
{
|
{
|
||||||
if (this.style)
|
if (this.style)
|
||||||
this.style.height = isNaN(_height) ? _height : _height+'px';
|
{
|
||||||
|
this.style.height = isNaN(_height) ? _height : _height+'px';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
get height()
|
get height()
|
||||||
{
|
{
|
||||||
@ -170,7 +172,7 @@ export class Et2Image extends Et2Widget(LitElement) implements et2_IDetachedDOM
|
|||||||
<img ${this.id ? html`id="${this.id}"` : ''}
|
<img ${this.id ? html`id="${this.id}"` : ''}
|
||||||
src="${url}"
|
src="${url}"
|
||||||
alt="${this.label}"
|
alt="${this.label}"
|
||||||
style="${this.height ? 'height: 100%' : 'width: 100%'}"
|
style="${this.height ? 'height: 100%; width: auto' : (this.width ? 'width: 100%; height: auto' : 'max-width: 100%; height: auto')}"
|
||||||
part="image"
|
part="image"
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
title="${this.statustext || this.label}"
|
title="${this.statustext || this.label}"
|
||||||
|
Loading…
Reference in New Issue
Block a user