From 4ccd1cb96fcc03fabc4817450fe438171e9a579b Mon Sep 17 00:00:00 2001 From: dwindown Date: Thu, 25 Dec 2025 13:57:53 +0700 Subject: [PATCH] Add paragraph spacing to prose content styling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add proper margin (my-4) to paragraphs in Tiptap-rendered content. This ensures proper spacing between paragraphs when displaying rich text content in product detail pages and other areas. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- src/index.css | 5 +++++ .../migrations/20241225_add_event_start_to_products.sql | 7 +++++++ supabase/migrations/20241225_add_webinar_duration.sql | 7 +++++++ 3 files changed, 19 insertions(+) create mode 100644 supabase/migrations/20241225_add_event_start_to_products.sql create mode 100644 supabase/migrations/20241225_add_webinar_duration.sql diff --git a/src/index.css b/src/index.css index 8c1557f..4f72df0 100644 --- a/src/index.css +++ b/src/index.css @@ -180,6 +180,11 @@ All colors MUST be HSL. @apply text-lg font-bold mt-4 mb-2; } + /* Paragraphs */ + .prose p { + @apply my-4; + } + /* Lists */ .prose ul { @apply list-disc pl-6 space-y-1 my-4; diff --git a/supabase/migrations/20241225_add_event_start_to_products.sql b/supabase/migrations/20241225_add_event_start_to_products.sql new file mode 100644 index 0000000..e0c6e73 --- /dev/null +++ b/supabase/migrations/20241225_add_event_start_to_products.sql @@ -0,0 +1,7 @@ +-- Add event_start column to products table +-- This column stores the start date/time for webinar and bootcamp events +ALTER TABLE products +ADD COLUMN event_start TIMESTAMP WITH TIME ZONE; + +-- Add comment for documentation +COMMENT ON COLUMN products.event_start IS 'Start date/time for webinars and bootcamps'; diff --git a/supabase/migrations/20241225_add_webinar_duration.sql b/supabase/migrations/20241225_add_webinar_duration.sql new file mode 100644 index 0000000..2af3852 --- /dev/null +++ b/supabase/migrations/20241225_add_webinar_duration.sql @@ -0,0 +1,7 @@ +-- Add duration_minutes column to products table +-- This column stores the duration in minutes for webinar and consulting products +ALTER TABLE products +ADD COLUMN duration_minutes INTEGER; + +-- Add comment for documentation +COMMENT ON COLUMN products.duration_minutes IS 'Duration in minutes for webinars and consulting sessions';