Skip to content
Snippets Groups Projects
Commit 0155967e authored by Steinwender, Tamara's avatar Steinwender, Tamara
Browse files

Apply is-icon buttons

parent b2173d41
No related branches found
No related tags found
No related merge requests found
...@@ -341,7 +341,7 @@ class OfficialSignaturePdfUpload extends ScopedElementsMixin(DBPSignatureLitElem ...@@ -341,7 +341,7 @@ class OfficialSignaturePdfUpload extends ScopedElementsMixin(DBPSignatureLitElem
(${humanFileSize(file.size)}) (${humanFileSize(file.size)})
</span> </span>
<button <button
class="button close" class="button close is-icon"
?disabled="${this.signingProcessEnabled}" ?disabled="${this.signingProcessEnabled}"
title="${i18n.t('official-pdf-upload.remove-queued-file-button-title')}" title="${i18n.t('official-pdf-upload.remove-queued-file-button-title')}"
@click="${() => { @click="${() => {
...@@ -426,7 +426,7 @@ class OfficialSignaturePdfUpload extends ScopedElementsMixin(DBPSignatureLitElem ...@@ -426,7 +426,7 @@ class OfficialSignaturePdfUpload extends ScopedElementsMixin(DBPSignatureLitElem
(${humanFileSize(file.contentSize)}) (${humanFileSize(file.contentSize)})
</span> </span>
<button <button
class="button" class="button is-icon"
title="${i18n.t('official-pdf-upload.download-file-button-title')}" title="${i18n.t('official-pdf-upload.download-file-button-title')}"
@click="${() => { @click="${() => {
this.downloadFileClickHandler(file, 'file-block-' + id); this.downloadFileClickHandler(file, 'file-block-' + id);
...@@ -467,7 +467,7 @@ class OfficialSignaturePdfUpload extends ScopedElementsMixin(DBPSignatureLitElem ...@@ -467,7 +467,7 @@ class OfficialSignaturePdfUpload extends ScopedElementsMixin(DBPSignatureLitElem
</span> </span>
<div class="buttons"> <div class="buttons">
<button <button
class="button" class="button is-icon"
title="${i18n.t('official-pdf-upload.re-upload-file-button-title')}" title="${i18n.t('official-pdf-upload.re-upload-file-button-title')}"
@click="${() => { @click="${() => {
this.fileQueueingClickHandler(data.file, id); this.fileQueueingClickHandler(data.file, id);
...@@ -475,7 +475,7 @@ class OfficialSignaturePdfUpload extends ScopedElementsMixin(DBPSignatureLitElem ...@@ -475,7 +475,7 @@ class OfficialSignaturePdfUpload extends ScopedElementsMixin(DBPSignatureLitElem
<dbp-icon name="reload"></dbp-icon> <dbp-icon name="reload"></dbp-icon>
</button> </button>
<button <button
class="button" class="button is-icon"
title="${i18n.t( title="${i18n.t(
'official-pdf-upload.remove-failed-file-button-title' 'official-pdf-upload.remove-failed-file-button-title'
)}" )}"
......
...@@ -383,7 +383,7 @@ export class PdfAnnotationView extends ScopedElementsMixin(DBPLitElement) { ...@@ -383,7 +383,7 @@ export class PdfAnnotationView extends ScopedElementsMixin(DBPLitElement) {
<div class="inner-grid"> <div class="inner-grid">
<label><strong>${name}</strong></label> <label><strong>${name}</strong></label>
<button <button
class="button close" class="button close is-icon"
title="${i18n.t('annotation-view.remove-field')}" title="${i18n.t('annotation-view.remove-field')}"
@click="${() => { @click="${() => {
this.removeAnnotation(id); this.removeAnnotation(id);
......
...@@ -666,7 +666,7 @@ export class PdfPreview extends ScopedElementsMixin(DBPLitElement) { ...@@ -666,7 +666,7 @@ export class PdfPreview extends ScopedElementsMixin(DBPLitElement) {
</button> </button>
<div class="nav-buttons"> <div class="nav-buttons">
<button <button
class="button" class="button is-icon"
title="${i18n.t('pdf-preview.first-page')}" title="${i18n.t('pdf-preview.first-page')}"
@click="${async () => { @click="${async () => {
await this.showPage(1); await this.showPage(1);
...@@ -676,7 +676,7 @@ export class PdfPreview extends ScopedElementsMixin(DBPLitElement) { ...@@ -676,7 +676,7 @@ export class PdfPreview extends ScopedElementsMixin(DBPLitElement) {
<dbp-icon name="angle-double-left"></dbp-icon> <dbp-icon name="angle-double-left"></dbp-icon>
</button> </button>
<button <button
class="button" class="button is-icon"
title="${i18n.t('pdf-preview.previous-page')}" title="${i18n.t('pdf-preview.previous-page')}"
@click="${async () => { @click="${async () => {
if (this.currentPage > 1) if (this.currentPage > 1)
...@@ -698,7 +698,7 @@ export class PdfPreview extends ScopedElementsMixin(DBPLitElement) { ...@@ -698,7 +698,7 @@ export class PdfPreview extends ScopedElementsMixin(DBPLitElement) {
})} })}
</div> </div>
<button <button
class="button" class="button is-icon"
title="${i18n.t('pdf-preview.next-page')}" title="${i18n.t('pdf-preview.next-page')}"
@click="${async () => { @click="${async () => {
if (this.currentPage < this.totalPages) if (this.currentPage < this.totalPages)
...@@ -709,7 +709,7 @@ export class PdfPreview extends ScopedElementsMixin(DBPLitElement) { ...@@ -709,7 +709,7 @@ export class PdfPreview extends ScopedElementsMixin(DBPLitElement) {
<dbp-icon name="chevron-right"></dbp-icon> <dbp-icon name="chevron-right"></dbp-icon>
</button> </button>
<button <button
class="button" class="button is-icon"
title="${i18n.t('pdf-preview.last-page')}" title="${i18n.t('pdf-preview.last-page')}"
@click="${async () => { @click="${async () => {
await this.showPage(this.totalPages); await this.showPage(this.totalPages);
......
...@@ -472,7 +472,7 @@ class QualifiedSignaturePdfUpload extends ScopedElementsMixin(DBPSignatureLitEle ...@@ -472,7 +472,7 @@ class QualifiedSignaturePdfUpload extends ScopedElementsMixin(DBPSignatureLitEle
(${humanFileSize(file.size)}) (${humanFileSize(file.size)})
</span> </span>
<button <button
class="button close" class="button close is-icon"
?disabled="${this.signingProcessEnabled}" ?disabled="${this.signingProcessEnabled}"
title="${i18n.t( title="${i18n.t(
'qualified-pdf-upload.remove-queued-file-button-title' 'qualified-pdf-upload.remove-queued-file-button-title'
...@@ -559,7 +559,7 @@ class QualifiedSignaturePdfUpload extends ScopedElementsMixin(DBPSignatureLitEle ...@@ -559,7 +559,7 @@ class QualifiedSignaturePdfUpload extends ScopedElementsMixin(DBPSignatureLitEle
(${humanFileSize(file.contentSize)}) (${humanFileSize(file.contentSize)})
</span> </span>
<button <button
class="button" class="button is-icon"
title="${i18n.t('qualified-pdf-upload.download-file-button-title')}" title="${i18n.t('qualified-pdf-upload.download-file-button-title')}"
@click="${() => { @click="${() => {
this.downloadFileClickHandler(file, 'file-block-' + id); this.downloadFileClickHandler(file, 'file-block-' + id);
...@@ -600,7 +600,7 @@ class QualifiedSignaturePdfUpload extends ScopedElementsMixin(DBPSignatureLitEle ...@@ -600,7 +600,7 @@ class QualifiedSignaturePdfUpload extends ScopedElementsMixin(DBPSignatureLitEle
</span> </span>
<div class="buttons"> <div class="buttons">
<button <button
class="button" class="button is-icon"
title="${i18n.t( title="${i18n.t(
'qualified-pdf-upload.re-upload-file-button-title' 'qualified-pdf-upload.re-upload-file-button-title'
)}" )}"
...@@ -610,7 +610,7 @@ class QualifiedSignaturePdfUpload extends ScopedElementsMixin(DBPSignatureLitEle ...@@ -610,7 +610,7 @@ class QualifiedSignaturePdfUpload extends ScopedElementsMixin(DBPSignatureLitEle
<dbp-icon name="reload"></dbp-icon> <dbp-icon name="reload"></dbp-icon>
</button> </button>
<button <button
class="button" class="button is-icon"
title="${i18n.t( title="${i18n.t(
'qualified-pdf-upload.remove-failed-file-button-title' 'qualified-pdf-upload.remove-failed-file-button-title'
)}" )}"
......
...@@ -140,17 +140,21 @@ export function getSignatureCss() { ...@@ -140,17 +140,21 @@ export function getSignatureCss() {
} }
.file-block { .file-block {
max-width: 320px; width: 320px;
margin-bottom: 10px; margin-bottom: 10px;
} }
.file-block .header { .file-block .header {
display: grid; display: flex;
align-items: center; align-items: center;
grid-template-columns: auto 40px; justify-content: space-between;
grid-gap: 10px; grid-gap: 10px;
} }
.file-block .header button{
flex-shrink: 0;
}
.file-block.error .header { .file-block.error .header {
grid-template-columns: auto 80px; grid-template-columns: auto 80px;
} }
...@@ -301,7 +305,7 @@ export function getSignatureCss() { ...@@ -301,7 +305,7 @@ export function getSignatureCss() {
} }
.file-block { .file-block {
max-width: inherit; width: inherit;
} }
#pdf-preview, #pdf-preview,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment