some style fixes

This commit is contained in:
maddalax 2024-09-24 23:17:04 -05:00
parent 3b6dff4092
commit 16ae29b3b6
3 changed files with 3 additions and 7 deletions

View file

@ -35,8 +35,4 @@ h.List(list, func(item *ent.Task, index int) *h.Element {
Text(value),
)
})
```
-
```

View file

@ -21,7 +21,7 @@ func DocsPage(ctx *h.RequestContext) *h.Page {
h.List(pages, func(page *dirwalk.Page, index int) *h.Element {
anchor := partials.CreateAnchor(page.Parts)
return h.Div(
h.Class("border-b border-b-slate-300 w-full pb-8 mb-8 p-4 md:p-0"),
h.Class("border-b border-b-slate-300 w-full pb-8 mb-8 p-4 md:px-0 -mb-2"),
MarkdownContent(ctx, page.FilePath, anchor),
h.Div(
h.Class("ml-4 pl-1 mt-2 bg-rose-200"),

View file

@ -22,7 +22,7 @@ func MarkdownContent(ctx *h.RequestContext, path string, id string) *h.Element {
return h.Div(
h.If(id != "", h.Id(id)),
h.Div(
h.Class("w-full flex flex-col prose max-w-[95vw] md:max-w-3xl prose-code:text-black prose-p:my-1"),
h.Class("w-full flex flex-col prose max-w-[95vw] md:max-w-3xl prose-code:text-black prose-p:my-1 prose:p-0 prose-li:m-0 prose-ul:m-0 prose-ol:m-0"),
h.Raw(renderer.RenderFile(path, embeddedMd)),
),
)