Skip to content
Snippets Groups Projects
Unverified Commit d4e73638 authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire:
Browse files

Add download link styling (#2)

parent 84691675
No related branches found
No related tags found
No related merge requests found
Pipeline #9826 passed with warnings
......@@ -204,9 +204,12 @@ class SignaturePdfUpload extends VPUSignatureLitElement {
}
.files-block .file {
margin: 10px 0;
}
.error-files .file {
display: grid;
grid-template-columns: 40px auto;
margin: 10px 0;
}
.files-block .file .button-box {
......@@ -238,14 +241,10 @@ class SignaturePdfUpload extends VPUSignatureLitElement {
getSignedFilesHtml() {
return this.signedFiles.map(file => html`
<div class="file">
<div class="button-box">
<button class="button is-small is-download"
<a class="is-download"
title="${i18n.t('pdf-upload.download-file-button-title')}"
@click="${() => {this.fileDownloadClickHandler(file);}}"><vpu-icon name="download"></vpu-icon></button>
</div>
<div class="info">
${file.name} (${humanFileSize(file.contentSize)})
</div>
@click="${() => {this.fileDownloadClickHandler(file);}}">
${file.name} (${humanFileSize(file.contentSize)}) <vpu-icon name="download"></vpu-icon></a>
</div>
`);
}
......@@ -292,7 +291,7 @@ class SignaturePdfUpload extends VPUSignatureLitElement {
<vpu-button id="zip-download-button" value="${i18n.t('pdf-upload.download-zip-button')}" title="${i18n.t('pdf-upload.download-zip-button-tooltip')}" @click="${this.zipDownloadClickHandler}" type="is-primary"></vpu-button>
</div>
</div>
<div class="files-block field ${classMap({hidden: this.errorFilesCount === 0})}">
<div class="files-block error-files field ${classMap({hidden: this.errorFilesCount === 0})}">
<h2 class="error">${i18n.t('pdf-upload.error-files-label')}</h2>
<div class="control">
${this.getErrorFilesHtml()}
......
Subproject commit e084a42d6732c421996abc046d159d76effa55f7
Subproject commit aaf1d872c3a03b4a4d5d7a55060ac16a3da9a0b7
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment