Et2File: Some CSS improvements to play nice wherever it's stuck

This commit is contained in:
nathan 2025-02-26 15:18:54 -07:00
parent aef9ae0752
commit ac9a3b13cf
2 changed files with 10 additions and 2 deletions

View File

@ -2,18 +2,25 @@ import {css} from 'lit';
export default css`
:host {
display: inline-block;
flex: 1 1 fit-content;
display: flex;
}
:host([loading]) .file__button et2-image {
display: none;
}
.file {
width: 100%;
}
.file--single > div {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
}
.file__file-list {
width: 100%;
}
.file__file-list::part(popup) {
min-width: 25em;
background-color: var(--sl-panel-background-color);

View File

@ -701,6 +701,7 @@ export class Et2File extends Et2InputWidget(LitElement)
class="file__button"
id="visible-button"
?disabled=${this.disabled}
title=${this.helptext ?? this.egw().lang("fileupload")}
noSubmit
image=${!this.loading ? this.image : ""}
>