fix css on html to go

This commit is contained in:
maddalax 2024-10-23 10:34:59 -05:00
parent bb9fb0b327
commit 07b0c2d3c5
2 changed files with 3 additions and 3 deletions

View file

@ -10,7 +10,7 @@ func HtmlToGoPage(ctx *h.RequestContext) *h.Page {
return h.NewPage(
base.PageWithNav(ctx,
h.Div(
h.Class("flex flex-col h-full items-center justify-center w-full pt-6"),
h.Class("flex flex-col h-screen items-center justify-center w-full pt-6"),
h.H3(
h.Text("Convert raw html to htmgo code"),
h.Class("text-2xl font-bold"),

View file

@ -17,7 +17,7 @@ func ConvertHtmlToGo(ctx *h.RequestContext) *h.Partial {
func HtmlInput() *h.Element {
return h.Div(
h.Class("h-[90%] w-1/2 min-w-1/2"),
h.Class("h-full w-1/2 min-w-1/2"),
h.TextArea(
h.Name("html-input"),
h.MaxLength(500*1000),
@ -31,7 +31,7 @@ func HtmlInput() *h.Element {
func GoOutput(content string) *h.Element {
return h.Div(
h.Class("h-[90%] w-1/2 min-w-1/2"),
h.Class("h-full w-1/2 min-w-1/2"),
h.Id("go-output"),
h.Div(
h.Class("h-[90%] w-full rounded border border-slate-200"),