Skip to content

Commit 392441c

Browse files
authored
Merge pull request #356 from TycheSoftwares/default-effect
css change
2 parents ac2bbff + b3ef514 commit 392441c

File tree

4 files changed

+41
-11
lines changed

4 files changed

+41
-11
lines changed

assets/css/adminstyle.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,10 @@ font-weight: bold;
225225
margin-bottom: 0;
226226
padding-right: 0.35em;
227227
}
228+
.order-infoo li span {
229+
display: inline-block;
230+
overflow: hidden;
231+
}
228232
.colophon-policiess {
229233
margin-bottom: 1.25em;
230234
}

assets/js/admin.js

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,23 @@ jQuery(document).ready(function($) {
184184
$('.accordion-button').eq(0).attr('disabled', false).removeAttr('title');
185185
$('.accordion-item .switch').css('pointer-events', 'none');
186186
// Add hover message for parent elements of .switch with disabled accordion-button.
187-
$('.accordion-item.disabled').hover(function() {
187+
$('.accordion-item.disabled').each(function() {
188188
var switchElement = $(this).find('.switch');
189189
if (switchElement.length) {
190-
var tooltip = $('<div class="hover-tooltip">This setting is disabled because you have selected the default template.</div>');
190+
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>');
192+
193+
overlay.css({
194+
position: 'absolute',
195+
top: 0,
196+
left: 0,
197+
width: '100%',
198+
height: '100%',
199+
background: 'rgba(255, 255, 255, 0.7)',
200+
zIndex: 999,
201+
borderRadius: '34px'
202+
}).show();
203+
191204
tooltip.css({
192205
position: 'absolute',
193206
background: '#fff',
@@ -199,20 +212,19 @@ jQuery(document).ready(function($) {
199212
zIndex: 1000,
200213
display: 'none'
201214
});
215+
216+
switchElement.append(overlay);
202217
$('body').append(tooltip);
203-
$(this).data('tooltip', tooltip);
204-
$(this).mousemove(function(event) {
218+
$(this).hover(function() {
219+
tooltip.fadeIn(200);
220+
}, function() {
221+
tooltip.hide();
222+
}).mousemove(function(event) {
205223
tooltip.css({
206224
top: event.pageY + 10 + 'px',
207225
left: event.pageX + 10 + 'px'
208226
});
209227
});
210-
tooltip.fadeIn(200);
211-
}
212-
}, function() {
213-
var tooltip = $(this).data('tooltip');
214-
if (tooltip) {
215-
tooltip.remove();
216228
}
217229
});
218230

readme.txt

Lines changed: 10 additions & 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 (28.05.2024) =
341+
= 5.0.0 (04.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.
@@ -351,6 +351,15 @@ Major Updates:
351351
*Added Invoice menu in the WooCommerce menu.
352352
Bug fixes :
353353
*Fix: Bulk printing being initiated multiple times
354+
*Fix: Translations for the print link in emails do not work
355+
356+
= 4.9.0 (27.02.2024) =
357+
* Fix - Cross-site request forgery vulnerability in the plugin.
358+
* Fix - Added a filter called 'wcdn_print_text_in_email' & 'wcdn_print_view_in_browser_text_in_email' for changing the "Print: Open print view in browser" text in email URL.
359+
* Fix - Fatal Error on the edit order page.
360+
* Fix - Additional product metadata is printed in the invoice.
361+
* Fix - Added a filter called 'wcdn_address_billing' to the shipping address Title.
362+
* Fix - Incorrect order date in the invoice.
354363

355364
= 4.8.1 (10.10.2023) =
356365
* Fix - Same invoice number & invoice date was displayed on all invoices and the counter was not being increased.

templates/print-order/style.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,11 @@ h2 {
191191
padding-right: 0.35em;
192192
}
193193

194+
.order-info li span {
195+
display: inline-block;
196+
overflow: hidden;
197+
}
198+
194199
/* Order Items */
195200
.order-items {
196201
margin-bottom: 1em;

0 commit comments

Comments
 (0)