Skip to content
Snippets Groups Projects
Commit b538b95f authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire: Committed by Reiter, Christoph
Browse files

Fix Nextcloud button hiding

parent 10a28053
No related branches found
No related tags found
No related merge requests found
...@@ -411,6 +411,7 @@ export class FileUpload extends ScopedElementsMixin(VPULitElement) { ...@@ -411,6 +411,7 @@ export class FileUpload extends ScopedElementsMixin(VPULitElement) {
static get styles() { static get styles() {
// language=css // language=css
return css` return css`
${commonStyles.getGeneralCSS()}
${commonStyles.getButtonCSS()} ${commonStyles.getButtonCSS()}
.hidden { display: none; } .hidden { display: none; }
...@@ -439,6 +440,10 @@ export class FileUpload extends ScopedElementsMixin(VPULitElement) { ...@@ -439,6 +440,10 @@ export class FileUpload extends ScopedElementsMixin(VPULitElement) {
display: inline-block; display: inline-block;
margin-left: 8px; margin-left: 8px;
} }
.block {
margin-bottom: 10px;
}
`; `;
} }
...@@ -452,7 +457,9 @@ export class FileUpload extends ScopedElementsMixin(VPULitElement) { ...@@ -452,7 +457,9 @@ export class FileUpload extends ScopedElementsMixin(VPULitElement) {
return html` return html`
<div id="dropArea"> <div id="dropArea">
<div title="${this.uploadInProgress ? i18n.t('upload-disabled-title') : ''}"> <div title="${this.uploadInProgress ? i18n.t('upload-disabled-title') : ''}">
<p>${this.text || i18n.t('intro')}</p> <div class="block">
${this.text || i18n.t('intro')}
</div>
<input ?disabled="${this.uploadInProgress || this.disabled}" <input ?disabled="${this.uploadInProgress || this.disabled}"
type="file" type="file"
id="fileElem" id="fileElem"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment