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.

Small upload area component CSS fix

Damian Legawiec895486d7c17e
diff --git a/admin/app/assets/stylesheets/spree/admin/components/_media_form.scss b/admin/app/assets/stylesheets/spree/admin/components/_media_form.scss
index f015dfc711..41dc908dae 100644
--- a/admin/app/assets/stylesheets/spree/admin/components/_media_form.scss
+++ b/admin/app/assets/stylesheets/spree/admin/components/_media_form.scss
@@ -5,7 +5,7 @@
justify-content: center;
align-items: center;
overflow: hidden;
- border-radius: 0.5rem;
+ border-radius: $border-radius-lg;
border: 1px dashed $gray-100;
background-color: rgba($gray-25, 0.5);
padding: 0.5rem;
@@ -57,7 +57,7 @@
width: 100%;
height: 100%;
aspect-ratio: 1/1;
- border-radius: 0.5rem;
+ border-radius: $border-radius;
position: relative;
justify-content: space-between;
align-items: flex-start;
diff --git a/admin/app/views/active_storage/_upload_form.html.erb b/admin/app/views/active_storage/_upload_form.html.erb
index e7031ebe58..1596410b6e 100644
--- a/admin/app/views/active_storage/_upload_form.html.erb
+++ b/admin/app/views/active_storage/_upload_form.html.erb
@@ -22,7 +22,7 @@
form.object.send(field_name),
width: width,
height: height,
- class: 'img-fluid rounded-lg',
+ class: 'img-fluid rounded',
data: { active_storage_upload_target: 'thumb' },
loading: :lazy
) %>