diff --git a/customize.dist/src/less2/include/alertify.less b/customize.dist/src/less2/include/alertify.less index 8044f6cdf..3fec3cccb 100644 --- a/customize.dist/src/less2/include/alertify.less +++ b/customize.dist/src/less2/include/alertify.less @@ -371,6 +371,15 @@ vertical-align: middle; } } + @media screen and (max-width: @browser_media-medium-screen) { + .cp-crowdfunding-modal nav { + display: flex; + flex-wrap: wrap; + justify-content: center; + align-items: center; + gap: 0.5rem; + } + } } } diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index 593a8ade1..f87e04d3e 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -3403,17 +3403,23 @@ define([ }; var content = Messages.crowdfunding_popup_text; - var buttons = [ - { - name: Messages.crowdfunding_popup_no, - className: 'cancel', - iconClass: 'crowdfunding-snooze', - onClick: function () { - recordShown(); - Feedback.send('CROWDFUNDING_NO'); - } + var buttons = [{ + name: Messages.dontShowAgain, + className: 'cancel left', + iconClass: 'close', + onClick: function () { + recordShown(); + dontShowAgain(); } - ]; + }, { + name: Messages.crowdfunding_popup_no, + className: 'cancel', + iconClass: 'crowdfunding-snooze', + onClick: function () { + recordShown(); + Feedback.send('CROWDFUNDING_NO'); + } + }]; if (!Config.removeDonateButton) { buttons.push({ name: Messages.crowdfunding_button2, @@ -3439,20 +3445,12 @@ define([ } }); } - buttons.push({ - name: Messages.dontShowAgain, - className: 'cancel left', - iconClass: 'close', - onClick: function () { - recordShown(); - dontShowAgain(); - } - }); var modal = UI.dialog.customModal(content, { force: true, scrollable: true, buttons: buttons }); + $(modal).addClass('cp-crowdfunding-modal'); UI.openCustomModal(modal, { wide: true }); };