Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Add media break point.

Matthew Kennedy3e04a5bdaf19
diff --git a/backend/app/assets/stylesheets/spree/backend/plugins/_sweetalert2_custom.scss b/backend/app/assets/stylesheets/spree/backend/plugins/_sweetalert2_custom.scss
index f44cc810c3..f9c79c0f14 100644
--- a/backend/app/assets/stylesheets/spree/backend/plugins/_sweetalert2_custom.scss
+++ b/backend/app/assets/stylesheets/spree/backend/plugins/_sweetalert2_custom.scss
@@ -22,6 +22,16 @@ body.swal2-toast-shown .swal2-container.swal2-bottom {
}
}
+@include media-breakpoint-down(sm) {
+ body.swal2-toast-shown .swal2-container.swal2-bottom {
+ .swal2-popup.swal2-toast {
+ button.swal2-close {
+ padding-bottom: 0;
+ }
+ }
+ }
+}
+
.swal2-popup.swal2-toast.swal2-icon-success {
@extend .alert-success;
h2, button {