more css fixes
This commit is contained in:
parent
62599c22ea
commit
4693820820
1 changed files with 5 additions and 2 deletions
|
|
@ -16,7 +16,7 @@ func MarkdownPage(ctx *h.RequestContext, path string, id string) *h.Element {
|
|||
)
|
||||
}
|
||||
|
||||
func MarkdownContent(ctx *h.RequestContext, path string, id string) *h.Element {
|
||||
func MarkdownContent(ctx *h.RequestContext, path string, id string, additionalClasses ...string) *h.Element {
|
||||
embeddedMd := ctx.Get("embeddedMarkdown").(fs.FS)
|
||||
renderer := service.Get[markdown.Renderer](ctx.ServiceLocator())
|
||||
return h.Div(
|
||||
|
|
@ -25,7 +25,10 @@ func MarkdownContent(ctx *h.RequestContext, path string, id string) *h.Element {
|
|||
h.Id(id),
|
||||
),
|
||||
h.Div(
|
||||
h.Class("w-full flex flex-col prose max-w-[90vw] md:max-w-xl md:px-4 lg:max-w-4xl xl:max-w-5xl prose-code:text-black prose-p:my-1 prose:p-0 prose-li:m-0 prose-ul:m-0 prose-ol:m-0"),
|
||||
h.Class(
|
||||
"w-full flex flex-col prose max-w-[90vw] md:max-w-[65vw] xl:max-w-4xl prose-code:text-black prose-p:my-1 prose:p-0 prose-li:m-0 prose-ul:m-0 prose-ol:m-0",
|
||||
h.MergeClasses(additionalClasses...),
|
||||
),
|
||||
h.UnsafeRaw(renderer.RenderFile(path, embeddedMd)),
|
||||
),
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue