fix display of long commit messages on small screens
2 files changed, 7 insertions(+), 1 deletion(-)
M static/style.css → static/style.css
@@ -183,6 +183,8 @@ } .log pre { white-space: pre-wrap; + word-wrap: break-word; + word-break: break-word; } .mode,@@ -344,6 +346,10 @@ .log { grid-template-columns: 1fr; grid-row-gap: 0em; + } + + .commit-header { + max-width: 80%; } .index {
M templates/log.go → templates/log.go
@@ -24,7 +24,7 @@ func Log(data PageData, commits []*git.CommitReference) g.Node { return Div(Class("log"), g.Map(commits, func(commit *git.CommitReference) g.Node { return g.Group{ - Div( + Div(Class("commit-header"), Div( A( Href(fmt.Sprintf("/%s/commit/%s", data.Name, commit.Hash.String())),