Skip to content

Commit 22d1379

Browse files
authored
Merge pull request #357 from TycheSoftwares/css-pdf
pdf css fixed
2 parents 392441c + 530d837 commit 22d1379

File tree

7 files changed

+16
-9
lines changed

7 files changed

+16
-9
lines changed

assets/js/admin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ jQuery(document).ready(function($) {
188188
var switchElement = $(this).find('.switch');
189189
if (switchElement.length) {
190190
var overlay = $('<div class="checkbox-overlay"></div>');
191-
var tooltip = $('<div class="hover-tooltip">Change the Template from default to Simple from the General Settings to enable customization.</div>');
191+
var tooltip = $('<div class="hover-tooltip">Change the template from Default to Simple from the General Settings to enable customization.</div>');
192192

193193
overlay.css({
194194
position: 'absolute',

readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ Please [contribute your translation](https://github.com/TycheSoftwares/woocommer
338338

339339
== Changelog ==
340340

341-
= 5.0.0 (04.06.2024) =
341+
= 5.0.0 (05.06.2024) =
342342
This release contains a major update for the plugin, focusing primarily on the all-new backend user interface, along with several bug fixes.
343343
Major Updates:
344344
*Changed the UI of plugin settings page.

templates/pdf/default/deliverynote/template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
?>
7878
<?php foreach ( $fields as $field ) : ?>
7979
<li>
80-
<strong><?php echo wp_kses_post( apply_filters( 'wcdn_order_info_name', $field['label'], $field ) ); ?></strong>
80+
<p><?php echo wp_kses_post( apply_filters( 'wcdn_order_info_name', $field['label'], $field ) ); ?></p>
8181
<span><?php echo wp_kses_post( apply_filters( 'wcdn_order_info_content', $field['value'], $field ) ); ?></span>
8282
</li>
8383
<?php endforeach; ?>

templates/pdf/default/invoice/template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
?>
7878
<?php foreach ( $fields as $field ) : ?>
7979
<li>
80-
<strong><?php echo wp_kses_post( apply_filters( 'wcdn_order_info_name', $field['label'], $field ) ); ?></strong>
80+
<p><?php echo wp_kses_post( apply_filters( 'wcdn_order_info_name', $field['label'], $field ) ); ?></p>
8181
<span><?php echo wp_kses_post( apply_filters( 'wcdn_order_info_content', $field['value'], $field ) ); ?></span>
8282
</li>
8383
<?php endforeach; ?>

templates/pdf/default/receipt/template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
?>
7878
<?php foreach ( $fields as $field ) : ?>
7979
<li>
80-
<strong><?php echo wp_kses_post( apply_filters( 'wcdn_order_info_name', $field['label'], $field ) ); ?></strong>
80+
<p><?php echo wp_kses_post( apply_filters( 'wcdn_order_info_name', $field['label'], $field ) ); ?></p>
8181
<span><?php echo wp_kses_post( apply_filters( 'wcdn_order_info_content', $field['value'], $field ) ); ?></span>
8282
</li>
8383
<?php endforeach; ?>

templates/pdf/default/style.css

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,9 @@ h2 {
167167
border-bottom: 0.12em solid #bbb;
168168
}
169169

170-
.order-info li strong {
171-
min-width: 18%;
170+
.order-info li p {
171+
min-width: 25%;
172+
font-size: 15px;
172173
font-weight: normal;
173174
display: inline-block;
174175
white-space: nowrap;
@@ -177,6 +178,12 @@ h2 {
177178
margin-bottom: 0;
178179
padding-right: 0.35em;
179180
}
181+
.order-info li span {
182+
font-size: 15px;
183+
font-weight: normal;
184+
display: inline-block;
185+
overflow: hidden;
186+
}
180187

181188
/* Order Items */
182189
.order-items {

woocommerce-delivery-notes.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
* License URI: http://www.opensource.org/licenses/gpl-license.php
1313
* Text Domain: woocommerce-delivery-notes
1414
* Domain Path: /languages
15-
* Requires PHP: 7.3
15+
* Requires PHP: 7.4
1616
* WC requires at least: 3.0.0
17-
* WC tested up to: 8.9.1
17+
* WC tested up to: 8.9.2
1818
* Tested up to: 6.5.3
1919
*
2020
* Copyright 2019 Tyche Softwares

0 commit comments

Comments
 (0)