diff --git a/.env.example b/.env.example index 710de10d..d46dac4d 100644 --- a/.env.example +++ b/.env.example @@ -3,5 +3,5 @@ # APP_NAME=littr -APP_VERSION=0.40.0 +APP_VERSION=0.40.1 GOLANG_VERSION=1.23 diff --git a/api/swagger.json b/api/swagger.json index 8897ff66..2418a233 100644 --- a/api/swagger.json +++ b/api/swagger.json @@ -13,7 +13,7 @@ "name": "MIT", "url": "https://github.com/krustowski/littr/blob/master/LICENSE" }, - "version": "0.40.0" + "version": "0.40.1" }, "host": "www.littr.eu", "basePath": "/api/v1", diff --git a/pkg/backend/router.go b/pkg/backend/router.go index 7bd47008..45c1a878 100644 --- a/pkg/backend/router.go +++ b/pkg/backend/router.go @@ -1,5 +1,5 @@ // @title littr -// @version 0.40.0 +// @version 0.40.1 // @description a simple nanoblogging platform as PWA built on go-app framework // @termsOfService https://littr.eu/tos diff --git a/pkg/frontend/flow.go b/pkg/frontend/flow.go index 58c6f881..3f5e5e3b 100644 --- a/pkg/frontend/flow.go +++ b/pkg/frontend/flow.go @@ -1224,6 +1224,10 @@ func (c *flowContent) Render() app.UI { // order posts by timestamp DESC sort.SliceStable(sortedPosts, func(i, j int) bool { + if c.singlePostID != "" { + return sortedPosts[i].Timestamp.Before(sortedPosts[j].Timestamp) + } + return sortedPosts[i].Timestamp.After(sortedPosts[j].Timestamp) }) @@ -1578,10 +1582,10 @@ func (c *flowContent) Render() app.UI { app.Details().Class("max").Body( app.Summary().Text(previousDetailsSummary).Style("word-break", "break-word").Style("hyphens", "auto").Class("italic"), app.Div().Class("space"), - app.Span().Class("italic").Text(previousContent).Style("word-break", "break-word").Style("hyphens", "auto").Style("white-space", "pre-line"), + app.Span().Class("bold").Text(previousContent).Style("word-break", "break-word").Style("hyphens", "auto").Style("white-space", "pre-line"), ), ).Else( - app.Span().Class("max italic").Text(previousContent).Style("word-break", "break-word").Style("hyphens", "auto").Style("white-space", "pre-line"), + app.Span().Class("max bold").Text(previousContent).Style("word-break", "break-word").Style("hyphens", "auto").Style("white-space", "pre-line"), ), app.Button().Title("link to original post").ID(post.ReplyToID).Class("transparent circle").OnClick(c.onClickLink).Disabled(c.buttonDisabled).Body(