Skip to content

Commit deeef7c

Browse files
chore: improve next/back button placement
1 parent bc1da4a commit deeef7c

File tree

6 files changed

+31
-25
lines changed

6 files changed

+31
-25
lines changed

assets/css/wcdp.css

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,10 @@ main#main .wcdp-form {
5959
color: var(--wcdp-main-3);
6060
}
6161

62-
#main .wcdp-right,
63-
.wcdp-right {
64-
float: right;
65-
}
66-
67-
.wcdp-left {
68-
display: inline-block;
69-
float: left;
62+
.button-row {
63+
display: flex;
64+
justify-content: space-between;
65+
flex-direction: row-reverse;
7066
}
7167

7268
#wcdp-popup .wcdp-body {
@@ -648,7 +644,7 @@ input:focus+.wcdp-fee-recovery__body {
648644
}
649645

650646
.wcdp-product-image {
651-
margin: 18px auto 12px;
647+
margin: 0 auto 12px;
652648
width: max-content;
653649
max-width: 100%;
654650
}

assets/css/wcdp.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

includes/class-wcdp-form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public static function wcdp_donation_form(array $value, string $context = 'short
6363
static $no_donation_form_yet = true;
6464

6565
//Only one donation form per page
66-
if ((!$no_donation_form_yet || ($context !== 'product-page' && is_product())) && apply_filters("wcdp_only_one_form_allowed", true)) {
66+
if ((!$no_donation_form_yet || ($context !== 'product-page' && $context !== 'embed' && is_product())) && apply_filters("wcdp_only_one_form_allowed", true)) {
6767
return '<p class="wcdp-error-message">' . esc_html__('Only one donation form per page allowed', 'wc-donation-platform') . '</p>';
6868
}
6969
$no_donation_form_yet = false;

0 commit comments

Comments
 (0)