Skip to content

Commit

Permalink
Update labels.blade.php (#8441)
Browse files Browse the repository at this point in the history
- Make the qr_size bigger when no barcode printed.
- BUG: Missing unit of font size for .qr-text class.
- Reduce padding-right to remove the additional space above text when print from Google Chrome. (I do not know the cause. I tried "box-sizing: border-box" without success.)
  • Loading branch information
zybersup committed Apr 20, 2021
1 parent 15e729f commit b28b245
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions resources/views/hardware/labels.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
$settings->labels_width = $settings->labels_width - $settings->labels_display_sgutter;
$settings->labels_height = $settings->labels_height - $settings->labels_display_bgutter;
// Leave space on bottom for 1D barcode if necessary
$qr_size = ($settings->alt_barcode_enabled=='1') && ($settings->alt_barcode!='') ? $settings->labels_height - .3 : $settings->labels_height - .3;
$qr_size = ($settings->alt_barcode_enabled=='1') && ($settings->alt_barcode!='') ? $settings->labels_height - .3 : $settings->labels_height - 0.1;
?>

<style>
Expand Down Expand Up @@ -61,8 +61,8 @@
height: {{ $settings->labels_height }}in;
padding-top: {{$settings->labels_display_bgutter}}in;
font-family: arial, helvetica, sans-serif;
font-size: {{$settings->labels_fontsize}};
padding-right: .01in;
font-size: {{$settings->labels_fontsize}}pt;
padding-right: .0001in;
overflow: hidden !important;
display: inline;
word-wrap: break-word;
Expand Down Expand Up @@ -164,4 +164,4 @@


</body>
</html>
</html>

0 comments on commit b28b245

Please sign in to comment.