Untitled conversation
- User
[Image 1] there should be gap between demo box and text box
- Assistant
Looking at the component structure, the demo box needs bottom margin to create space before any following content. I'll add margin-bottom to the demo container.
- Assistant
Added
mb-6to the demo box container incomponent-preview.tsx:23. This creates a 24px gap between the demo preview and any following content. - User
i think this is problem of @demo/text-highlight-demo.tsx
- Assistant
The issue is that the demo uses
w-dvw h-dvhwhich makes it fill the entire viewport, ignoring the parent container's padding. I'll fix the demo to respect the parent dimensions. - Assistant
Reverted the
component-preview.tsxchange and fixedtext-highlight-demo.tsx:36by changingw-dvw h-dvhtow-full h-full. This makes the demo content respect the parent container's padding instead of filling the entire viewport. - User
[Image 1] even then is not working
- Assistant
The inner scrollable div has
bg-backgroundfilling the entire demo box. I'll add margin to create a visible gap between the demo box border and the content. - Assistant
Changed
text-highlight-demo.tsx:39-42to addm-2margin androunded-xlto the inner scrollable container, creating a visible gap between the demo box border and the content area. - User
the demo should be like this [Image 1]
- Assistant
I see - the demo should have a white/light background inside the demo box. Let me update it to match.
- Assistant
Updated
text-highlight-demo.tsx:- Line 40:
bg-background→bg-whitefor white inner background - Line 14:
#f6339a→#f8c4c4for softer peach highlight color - Line 43:
text-foreground→text-blackfor dark text on white background
- Line 40:
- Assistant
Done. The demo now has a white background, black text, and softer peach highlights matching your reference image.