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.

Fixed: do not set static height for trix containers

Damian Legawiec33a04c4e58bc
diff --git a/admin/app/views/spree/admin/posts/_form.html.erb b/admin/app/views/spree/admin/posts/_form.html.erb
index 3067c58040..8e26be63db 100644
--- a/admin/app/views/spree/admin/posts/_form.html.erb
+++ b/admin/app/views/spree/admin/posts/_form.html.erb
@@ -13,12 +13,10 @@
<%= f.spree_rich_text_area :content,
help_bubble: 'Add a summary of the post',
- style: 'height: 300px',
data: { seo_form_target: 'sourceDescriptionInput' } %>
<%= f.spree_rich_text_area :excerpt,
help_bubble: 'Add a summary of the post',
- style: 'height: 100px',
data: { seo_form_target: 'sourceExcerptInput' } %>
</div>
</div>
diff --git a/admin/app/views/spree/admin/stores/form/_policies.html.erb b/admin/app/views/spree/admin/stores/form/_policies.html.erb
index 5d55b11c8a..499cc58be2 100644
--- a/admin/app/views/spree/admin/stores/form/_policies.html.erb
+++ b/admin/app/views/spree/admin/stores/form/_policies.html.erb
@@ -14,7 +14,7 @@
<p class="text-muted">
Customers will need to accept these terms of service during signup.
</p>
- <%= f.spree_rich_text_area :customer_terms_of_service, style: 'height: 300px', label: Spree.t(:terms_of_service) %>
+ <%= f.spree_rich_text_area :customer_terms_of_service, label: Spree.t(:terms_of_service) %>
</div>
</div>
@@ -26,7 +26,7 @@
<p class="text-muted">
Customers will need to accept these privacy policy during signup.
</p>
- <%= f.spree_rich_text_area :customer_privacy_policy, style: 'height: 300px', label: Spree.t(:privacy_policy) %>
+ <%= f.spree_rich_text_area :customer_privacy_policy, label: Spree.t(:privacy_policy) %>
</div>
</div>
@@ -38,7 +38,7 @@
<p class="text-muted">
Please provide your customers with a clear and transparent returns policy.
</p>
- <%= f.spree_rich_text_area :customer_returns_policy, style: 'height: 300px', label: Spree.t(:returns_policy) %>
+ <%= f.spree_rich_text_area :customer_returns_policy, label: Spree.t(:returns_policy) %>
</div>
</div>
@@ -50,7 +50,7 @@
<p class="text-muted">
Please provide your customers with a clear and transparent shipping policy.
</p>
- <%= f.spree_rich_text_area :customer_shipping_policy, style: 'height: 300px', label: Spree.t(:shipping_policy) %>
+ <%= f.spree_rich_text_area :customer_shipping_policy, label: Spree.t(:shipping_policy) %>
</div>
</div>
@@ -63,7 +63,7 @@
<p class="text-muted">
Vendors you invite will need to accept these terms of service during their onboarding process.
</p>
- <%= f.spree_rich_text_area :partners_terms_of_service, style: 'height: 300px', label: Spree.t(:terms_of_service) %>
+ <%= f.spree_rich_text_area :partners_terms_of_service, label: Spree.t(:terms_of_service) %>
</div>
</div>
<% end %>