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,11 +127,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.ProseMirror ul {
|
.ProseMirror ul {
|
||||||
@apply list-disc list-inside my-3;
|
@apply list-disc list-outside pl-6 my-3;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ProseMirror ol {
|
.ProseMirror ol {
|
||||||
@apply list-decimal list-inside my-3;
|
@apply list-decimal list-outside pl-6 my-3;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ProseMirror li {
|
.ProseMirror li {
|
||||||
|
|||||||
@@ -127,12 +127,12 @@ export default function LegalPageLayout({
|
|||||||
),
|
),
|
||||||
// Style lists
|
// Style lists
|
||||||
ul: ({ children }) => (
|
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}
|
{children}
|
||||||
</ul>
|
</ul>
|
||||||
),
|
),
|
||||||
ol: ({ children }) => (
|
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}
|
{children}
|
||||||
</ol>
|
</ol>
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user