some style fixes
This commit is contained in:
parent
3b6dff4092
commit
16ae29b3b6
3 changed files with 3 additions and 7 deletions
|
|
@ -35,8 +35,4 @@ h.List(list, func(item *ent.Task, index int) *h.Element {
|
||||||
Text(value),
|
Text(value),
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
-
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ func DocsPage(ctx *h.RequestContext) *h.Page {
|
||||||
h.List(pages, func(page *dirwalk.Page, index int) *h.Element {
|
h.List(pages, func(page *dirwalk.Page, index int) *h.Element {
|
||||||
anchor := partials.CreateAnchor(page.Parts)
|
anchor := partials.CreateAnchor(page.Parts)
|
||||||
return h.Div(
|
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),
|
MarkdownContent(ctx, page.FilePath, anchor),
|
||||||
h.Div(
|
h.Div(
|
||||||
h.Class("ml-4 pl-1 mt-2 bg-rose-200"),
|
h.Class("ml-4 pl-1 mt-2 bg-rose-200"),
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ func MarkdownContent(ctx *h.RequestContext, path string, id string) *h.Element {
|
||||||
return h.Div(
|
return h.Div(
|
||||||
h.If(id != "", h.Id(id)),
|
h.If(id != "", h.Id(id)),
|
||||||
h.Div(
|
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)),
|
h.Raw(renderer.RenderFile(path, embeddedMd)),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue