fix(legal): align bullet list markers with list text
Use list-outside and left padding so ReactMarkdown and TipTap list items render markers beside text instead of on separate lines.
This commit is contained in:
@@ -127,12 +127,12 @@ export default function LegalPageLayout({
|
||||
),
|
||||
// Style lists
|
||||
ul: ({ children }) => (
|
||||
<ul className="list-disc list-inside space-y-2 mb-4 text-gray-700 ml-4">
|
||||
<ul className="list-disc list-outside space-y-2 mb-4 text-gray-700 pl-6">
|
||||
{children}
|
||||
</ul>
|
||||
),
|
||||
ol: ({ children }) => (
|
||||
<ol className="list-decimal list-inside space-y-2 mb-4 text-gray-700 ml-4">
|
||||
<ol className="list-decimal list-outside space-y-2 mb-4 text-gray-700 pl-6">
|
||||
{children}
|
||||
</ol>
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user