mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 01:35:34 +08:00
Merge pull request #4554 from aignatov-bio/ai-sci-7367-fix-label-preview-in-print-modal
Fix label preview in print modal [SCI-7367]
This commit is contained in:
commit
c7ee068893
2 changed files with 12 additions and 0 deletions
|
@ -70,6 +70,10 @@
|
|||
justify-content: center;
|
||||
min-height: 200px;
|
||||
padding: .5em 0;
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.label-template-option {
|
||||
|
|
|
@ -130,6 +130,14 @@
|
|||
},
|
||||
zpl() {
|
||||
this.refreshPreview();
|
||||
},
|
||||
template() {
|
||||
this.width = this.template.attributes.unit == 'in' ? this.template.attributes.width_mm / 25.4 : this.template.attributes.width_mm
|
||||
this.height = this.template.attributes.unit == 'in' ? this.template.attributes.height_mm / 25.4 : this.template.attributes.height_mm
|
||||
this.unit = this.template.attributes.unit
|
||||
this.density = this.template.attributes.density
|
||||
|
||||
this.refreshPreview()
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
Loading…
Reference in a new issue