css fixes
This commit is contained in:
parent
819af8b7b8
commit
5c87d96a51
2 changed files with 4 additions and 2 deletions
|
|
@ -12,7 +12,7 @@ func IndexPage(ctx *h.RequestContext) *h.Page {
|
||||||
h.Class("flex gap-2 min-h-screen"),
|
h.Class("flex gap-2 min-h-screen"),
|
||||||
partials.StorySidebar(ctx),
|
partials.StorySidebar(ctx),
|
||||||
h.Main(
|
h.Main(
|
||||||
h.Class("flex justify-center items-start p-6 max-w-3xl min-w-3xl mx-auto"),
|
h.Class("flex justify-left items-start p-6 w-full"),
|
||||||
partials.Story(ctx),
|
partials.Story(ctx),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,7 @@ func Story(ctx *h.RequestContext) *h.Partial {
|
||||||
ctx,
|
ctx,
|
||||||
h.PushUrlHeader(fmt.Sprintf("/?item=%d", storyId)),
|
h.PushUrlHeader(fmt.Sprintf("/?item=%d", storyId)),
|
||||||
h.Div(
|
h.Div(
|
||||||
|
h.Class("w-full"),
|
||||||
h.Id("story-body"),
|
h.Id("story-body"),
|
||||||
CachedStoryBody(storyId),
|
CachedStoryBody(storyId),
|
||||||
),
|
),
|
||||||
|
|
@ -50,9 +51,10 @@ var CachedStoryBody = h.CachedPerKeyT[string, int](time.Minute*3, func(itemId in
|
||||||
|
|
||||||
func StoryBody(story *news.Story) *h.Element {
|
func StoryBody(story *news.Story) *h.Element {
|
||||||
return h.Div(
|
return h.Div(
|
||||||
|
h.Class("w-full"),
|
||||||
h.Id("story-body"),
|
h.Id("story-body"),
|
||||||
h.Div(
|
h.Div(
|
||||||
h.Class("prose prose-2xl bg-white border-b border-gray-200 pb-3 min-w-3xl max-w-3xl"),
|
h.Class("prose prose-2xl border-b border-gray-200 pb-3 max-w-none w-full"),
|
||||||
h.H5(
|
h.H5(
|
||||||
h.Class("flex gap-2 items-left font-bold"),
|
h.Class("flex gap-2 items-left font-bold"),
|
||||||
h.UnsafeRaw(story.Title),
|
h.UnsafeRaw(story.Title),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue