mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +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,8 +132,10 @@ export class Et2Image extends Et2Widget(LitElement) implements et2_IDetachedDOM
|
||||
set height(_height)
|
||||
{
|
||||
if (this.style)
|
||||
{
|
||||
this.style.height = isNaN(_height) ? _height : _height+'px';
|
||||
}
|
||||
}
|
||||
get height()
|
||||
{
|
||||
return this.style.height;
|
||||
@ -170,7 +172,7 @@ export class Et2Image extends Et2Widget(LitElement) implements et2_IDetachedDOM
|
||||
<img ${this.id ? html`id="${this.id}"` : ''}
|
||||
src="${url}"
|
||||
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"
|
||||
loading="lazy"
|
||||
title="${this.statustext || this.label}"
|
||||
|
Loading…
Reference in New Issue
Block a user