all repos — elgit @ d9a96412caedefaef30af078e9ccfd96c7d12351

fork of legit: web frontend for git, written in go

fix display of long commit messages on small screens

Alan Pearce
commit

d9a96412caedefaef30af078e9ccfd96c7d12351

parent

3c85673dc13160317a694efa1e07ebe0b1627228

2 files changed, 7 insertions(+), 1 deletion(-)

jump to
M static/style.cssstatic/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.gotemplates/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())),