BlueGit

timfa bluegit

Overzicht: smalle grafiek zonder tekstkolom, met tooltip

Op breedtes waar de volle grafiek niet past (tot ~1400px met sidebar)
blijft dezelfde tekening zichtbaar, maar zonder committekst, zodat de
centrale kolom de ruimte terugkrijgt. Hover of focus toont onderwerp,
korte sha en auteur (data-tip in de stylesheet, plus SVG title). In
die modus valt van een branchnaam alles t/m de laatste '/' weg. Alleen
op mobiel blijft de grafiek verborgen. Geen inline styles (CSP).

timfa Grok Bot · pushed by timfa

Authored 2026-11-12 · 5 days ago

Hash
ee06097d2b7c6d609fc1ca8996104c9885908ed8
Parent
f09b7203
Pipeline
Passed
10 files changed +324 −75
README.md +1 −1
@@ -11,7 +11,7 @@ Het logo is de blauwe ster: [`assets/logo.svg`](assets/logo.svg).
11 11 ## Wat het doet
12 12
13 13 - Repositories van een gebruiker of een groep, met bestanden, commits, branches, tags en releases.
14 - Op de project-overzichtspagina staat een commitgrafiek links van de centrale kolom, als er plek is. Elke commit staat op één regel; de lijnen lopen in verticale lanes met afgeronde 90-graden bochten, en de avatar is de commitknoop. De tekst begint in één kolom, rechts van de meest rechtse lane. Elke avatar staat in de SVG op de lane van die commit (niet via inline CSS: de CSP staat geen style-attributen toe). De grafiek wordt niet verkleind; te lange committekst krijgt een ellipsis. Past de grafiek links niet zonder de centrale kolom onbruikbaar te maken (bijvoorbeeld 1024px of 1280px met sidebar), dan hangt hij rechts, anders blijft hij verborgen. De lijn van de in de dropdown gekozen branch gloeit. De hoofdbranch gebruikt de BlueGit-blauw; andere branches krijgen een vaste kleur uit hun naam. De grafiek wordt in het geheugen bewaard (LRU) en bij een push ververst, zodat herhaald laden geen git-I/O op schijf doet.
14 - Op de project-overzichtspagina staat een commitgrafiek links van de centrale kolom, als er plek is. Elke commit staat op één regel; de lijnen lopen in verticale lanes met afgeronde 90-graden bochten, en de avatar is de commitknoop. De tekst begint in één kolom, rechts van de meest rechtse lane. Elke avatar staat in de SVG op de lane van die commit (niet via inline CSS: de CSP staat geen style-attributen toe). De grafiek wordt niet verkleind; te lange committekst krijgt een ellipsis. Past de volle grafiek (met tekstkolom) niet, dan verschijnt een smalle modus: dezelfde lanes, avatars en labels, maar zonder committekst; bij hover (of focus) toont een tooltip het bericht. In die modus valt van een branchnaam alles t/m de laatste '/' weg (de volledige naam blijft in de tooltip). Alleen als ook de smalle modus niet past, zoals op mobiel, blijft de grafiek verborgen. De lijn van de in de dropdown gekozen branch gloeit. De hoofdbranch gebruikt de BlueGit-blauw; andere branches krijgen een vaste kleur uit hun naam. De grafiek wordt in het geheugen bewaard (LRU) en bij een push ververst, zodat herhaald laden geen git-I/O op schijf doet.
15 15 - Merge requests met reviews, squash en het verwijderen van de bronbranch na een merge.
16 16 - Issues, met beschrijvingssjablonen in `.bluegit/issue_templates`. Merge requests gebruiken `.bluegit/merge_request_templates`. `Default.md` vult een lege beschrijving. Dezelfde namen onder `.gitlab/` zijn een terugval.
17 17 - Een ingebouwde CI-runner, Steve. Het bestand is `blue-ci-cd.yml`. Elke job draait in een eigen container. `image: bluegit/base` en de andere aliassen zijn image-presets die Steve lokaal bouwt.
@@ -11,7 +11,7 @@ Het logo is de blauwe ster: [`assets/logo.svg`](assets/logo.svg).
11## Wat het doet
11## Wat het doet
12
12
13- Repositories van een gebruiker of een groep, met bestanden, commits, branches, tags en releases.
13- Repositories van een gebruiker of een groep, met bestanden, commits, branches, tags en releases.
14- Op de project-overzichtspagina staat een commitgrafiek links van de centrale kolom, als er plek is. Elke commit staat op één regel; de lijnen lopen in verticale lanes met afgeronde 90-graden bochten, en de avatar is de commitknoop. De tekst begint in één kolom, rechts van de meest rechtse lane. Elke avatar staat in de SVG op de lane van die commit (niet via inline CSS: de CSP staat geen style-attributen toe). De grafiek wordt niet verkleind; te lange committekst krijgt een ellipsis. Past de grafiek links niet zonder de centrale kolom onbruikbaar te maken (bijvoorbeeld 1024px of 1280px met sidebar), dan hangt hij rechts, anders blijft hij verborgen. De lijn van de in de dropdown gekozen branch gloeit. De hoofdbranch gebruikt de BlueGit-blauw; andere branches krijgen een vaste kleur uit hun naam. De grafiek wordt in het geheugen bewaard (LRU) en bij een push ververst, zodat herhaald laden geen git-I/O op schijf doet.
14- Op de project-overzichtspagina staat een commitgrafiek links van de centrale kolom, als er plek is. Elke commit staat op één regel; de lijnen lopen in verticale lanes met afgeronde 90-graden bochten, en de avatar is de commitknoop. De tekst begint in één kolom, rechts van de meest rechtse lane. Elke avatar staat in de SVG op de lane van die commit (niet via inline CSS: de CSP staat geen style-attributen toe). De grafiek wordt niet verkleind; te lange committekst krijgt een ellipsis. Past de volle grafiek (met tekstkolom) niet, dan verschijnt een smalle modus: dezelfde lanes, avatars en labels, maar zonder committekst; bij hover (of focus) toont een tooltip het bericht. In die modus valt van een branchnaam alles t/m de laatste '/' weg (de volledige naam blijft in de tooltip). Alleen als ook de smalle modus niet past, zoals op mobiel, blijft de grafiek verborgen. De lijn van de in de dropdown gekozen branch gloeit. De hoofdbranch gebruikt de BlueGit-blauw; andere branches krijgen een vaste kleur uit hun naam. De grafiek wordt in het geheugen bewaard (LRU) en bij een push ververst, zodat herhaald laden geen git-I/O op schijf doet.
15- Merge requests met reviews, squash en het verwijderen van de bronbranch na een merge.
15- Merge requests met reviews, squash en het verwijderen van de bronbranch na een merge.
16- Issues, met beschrijvingssjablonen in `.bluegit/issue_templates`. Merge requests gebruiken `.bluegit/merge_request_templates`. `Default.md` vult een lege beschrijving. Dezelfde namen onder `.gitlab/` zijn een terugval.
16- Issues, met beschrijvingssjablonen in `.bluegit/issue_templates`. Merge requests gebruiken `.bluegit/merge_request_templates`. `Default.md` vult een lege beschrijving. Dezelfde namen onder `.gitlab/` zijn een terugval.
17- Een ingebouwde CI-runner, Steve. Het bestand is `blue-ci-cd.yml`. Elke job draait in een eigen container. `image: bluegit/base` en de andere aliassen zijn image-presets die Steve lokaal bouwt.
17- Een ingebouwde CI-runner, Steve. Het bestand is `blue-ci-cd.yml`. Elke job draait in een eigen container. `image: bluegit/base` en de andere aliassen zijn image-presets die Steve lokaal bouwt.
docs/ARCHITECTURE.md +1 −1
@@ -95,6 +95,6 @@ Webhooks gaan niet naar een privénetwerk. De classificatie staat in `internal/s
95 95
96 96 ## Commitgrafiek
97 97
98 De project-overzichtspagina toont een commitgrafiek links van de centrale kolom, als die ruimte breed genoeg is. Elke commit staat op één regel. Lijnen lopen in verticale lanes en buigen met afgeronde 90-graden hoeken naar een andere lane. De avatar van de auteur is de commitknoop, op de lane. De committekst staat in één linkse kolom die begint net rechts van de meest rechtse lane. Elke avatar staat in de SVG op de lane-x van die commit (`<image>` met `clipPath`, of een cirkel plus initiaal), in hetzelfde coördinatenstelsel als de lijnen. Er worden geen inline style-attributen gebruikt: `Content-Security-Policy` heeft `style-src 'self'` zonder `'unsafe-inline'`, dus paneelmaten komen uit stylesheet-klassen `.lanes-1` t/m `.lanes-40`. De lanes en het SVG worden niet geschaald (geen viewBox). De tekstkolom begint altijd rechts van de meest rechtse lane en kapt af met een ellipsis. De grafiek komt alleen links te staan als er naast de grafiek nog een bruikbare hoofdkolom (~720px) overblijft; op 1024px of 1280px met sidebar is dat te krap, dus hangt hij rechts of blijft hij verborgen. Past de grafiek links niet, dan hangt hij rechts van de kolom; anders blijft hij verborgen. Stylesheets en scripts worden met Cache-Control: no-cache gegeven, zodat een self-update geen oude CSS over de nieuwe tekening legt. De lane van de in de branch-dropdown gekozen branch gloeit (client-side, zonder extra request). De hoofdbranch is altijd `--blue`. Andere branches krijgen een deterministische kleur uit een palet van CSS-variabelen, op basis van de branchnaam.
98 De project-overzichtspagina toont een commitgrafiek links van de centrale kolom, als die ruimte breed genoeg is. Elke commit staat op één regel. Lijnen lopen in verticale lanes en buigen met afgeronde 90-graden hoeken naar een andere lane. De avatar van de auteur is de commitknoop, op de lane. De committekst staat in één linkse kolom die begint net rechts van de meest rechtse lane. Elke avatar staat in de SVG op de lane-x van die commit (`<image>` met `clipPath`, of een cirkel plus initiaal), in hetzelfde coördinatenstelsel als de lijnen. Er worden geen inline style-attributen gebruikt: `Content-Security-Policy` heeft `style-src 'self'` zonder `'unsafe-inline'`, dus paneelmaten komen uit stylesheet-klassen `.lanes-1` t/m `.lanes-40`. De lanes en het SVG worden niet geschaald (geen viewBox). De tekstkolom begint altijd rechts van de meest rechtse lane en kapt af met een ellipsis. Op brede schermen (~1400px met sidebar, of ~1160px zonder) staat de tekstkolom rechts van de meest rechtse lane. Daaronder, tot aan mobiel, is er een smalle modus zonder tekstkolom (`--graph-narrow-w`, refs + lanes): de hoofdkolom krijgt die ruimte terug. Bij hover of focus verschijnt een tooltip met onderwerp, korte sha en auteur (`data-tip` + stylesheet `::after`, plus een SVG `<title>`). In de smalle modus toont een branchlabel alleen het deel na de laatste '/' (`LeafLabel`); de volledige naam staat in `title`. Alleen op smalle (mobiele) viewports blijft de grafiek verborgen. Stylesheets en scripts worden met Cache-Control: no-cache gegeven, zodat een self-update geen oude CSS over de nieuwe tekening legt. De lane van de in de branch-dropdown gekozen branch gloeit (client-side, zonder extra request). De hoofdbranch is altijd `--blue`. Andere branches krijgen een deterministische kleur uit een palet van CSS-variabelen, op basis van de branchnaam.
99 99
100 100 De gelegde grafiek (recente commits over alle branches, inclusief merges en forks) staat in een begrensde LRU-cache in het geheugen, per repository (en hoofdbranch). Een herhaalde pageview doet geen git-I/O. Bij een push wist `refsChanged` de entry en vult `refreshCache` hem op de achtergrond opnieuw. Deze cache schrijft niet naar schijf en is onafhankelijk van de optionele leescache.
@@ -95,6 +95,6 @@ Webhooks gaan niet naar een privénetwerk. De classificatie staat in `internal/s
95
95
96## Commitgrafiek
96## Commitgrafiek
97
97
98De project-overzichtspagina toont een commitgrafiek links van de centrale kolom, als die ruimte breed genoeg is. Elke commit staat op één regel. Lijnen lopen in verticale lanes en buigen met afgeronde 90-graden hoeken naar een andere lane. De avatar van de auteur is de commitknoop, op de lane. De committekst staat in één linkse kolom die begint net rechts van de meest rechtse lane. Elke avatar staat in de SVG op de lane-x van die commit (`<image>` met `clipPath`, of een cirkel plus initiaal), in hetzelfde coördinatenstelsel als de lijnen. Er worden geen inline style-attributen gebruikt: `Content-Security-Policy` heeft `style-src 'self'` zonder `'unsafe-inline'`, dus paneelmaten komen uit stylesheet-klassen `.lanes-1` t/m `.lanes-40`. De lanes en het SVG worden niet geschaald (geen viewBox). De tekstkolom begint altijd rechts van de meest rechtse lane en kapt af met een ellipsis. De grafiek komt alleen links te staan als er naast de grafiek nog een bruikbare hoofdkolom (~720px) overblijft; op 1024px of 1280px met sidebar is dat te krap, dus hangt hij rechts of blijft hij verborgen. Past de grafiek links niet, dan hangt hij rechts van de kolom; anders blijft hij verborgen. Stylesheets en scripts worden met Cache-Control: no-cache gegeven, zodat een self-update geen oude CSS over de nieuwe tekening legt. De lane van de in de branch-dropdown gekozen branch gloeit (client-side, zonder extra request). De hoofdbranch is altijd `--blue`. Andere branches krijgen een deterministische kleur uit een palet van CSS-variabelen, op basis van de branchnaam.
98De project-overzichtspagina toont een commitgrafiek links van de centrale kolom, als die ruimte breed genoeg is. Elke commit staat op één regel. Lijnen lopen in verticale lanes en buigen met afgeronde 90-graden hoeken naar een andere lane. De avatar van de auteur is de commitknoop, op de lane. De committekst staat in één linkse kolom die begint net rechts van de meest rechtse lane. Elke avatar staat in de SVG op de lane-x van die commit (`<image>` met `clipPath`, of een cirkel plus initiaal), in hetzelfde coördinatenstelsel als de lijnen. Er worden geen inline style-attributen gebruikt: `Content-Security-Policy` heeft `style-src 'self'` zonder `'unsafe-inline'`, dus paneelmaten komen uit stylesheet-klassen `.lanes-1` t/m `.lanes-40`. De lanes en het SVG worden niet geschaald (geen viewBox). De tekstkolom begint altijd rechts van de meest rechtse lane en kapt af met een ellipsis. Op brede schermen (~1400px met sidebar, of ~1160px zonder) staat de tekstkolom rechts van de meest rechtse lane. Daaronder, tot aan mobiel, is er een smalle modus zonder tekstkolom (`--graph-narrow-w`, refs + lanes): de hoofdkolom krijgt die ruimte terug. Bij hover of focus verschijnt een tooltip met onderwerp, korte sha en auteur (`data-tip` + stylesheet `::after`, plus een SVG `<title>`). In de smalle modus toont een branchlabel alleen het deel na de laatste '/' (`LeafLabel`); de volledige naam staat in `title`. Alleen op smalle (mobiele) viewports blijft de grafiek verborgen. Stylesheets en scripts worden met Cache-Control: no-cache gegeven, zodat een self-update geen oude CSS over de nieuwe tekening legt. De lane van de in de branch-dropdown gekozen branch gloeit (client-side, zonder extra request). De hoofdbranch is altijd `--blue`. Andere branches krijgen een deterministische kleur uit een palet van CSS-variabelen, op basis van de branchnaam.
99
99
100De gelegde grafiek (recente commits over alle branches, inclusief merges en forks) staat in een begrensde LRU-cache in het geheugen, per repository (en hoofdbranch). Een herhaalde pageview doet geen git-I/O. Bij een push wist `refsChanged` de entry en vult `refreshCache` hem op de achtergrond opnieuw. Deze cache schrijft niet naar schijf en is onafhankelijk van de optionele leescache.
100De gelegde grafiek (recente commits over alle branches, inclusief merges en forks) staat in een begrensde LRU-cache in het geheugen, per repository (en hoofdbranch). Een herhaalde pageview doet geen git-I/O. Bij een push wist `refsChanged` de entry en vult `refreshCache` hem op de achtergrond opnieuw. Deze cache schrijft niet naar schijf en is onafhankelijk van de optionele leescache.
internal/gitgraph/graph.go +32 −2
@@ -50,6 +50,7 @@ type Ref struct {
50 50 // Ref is de volledige naam (voor de dropdown en de gloed).
51 51 type Label struct {
52 52 Name, Ref, Kind, Color, Class string
53 Short string // bladnaam na de laatste '/', voor de smalle modus
53 54 Default bool
54 55 }
55 56
@@ -66,6 +67,7 @@ type Row struct {
66 67 UserURL string
67 68 NodeX float64 // midden van de avatar, in SVG-coördinaten (gelijk aan de lane-x)
68 69 NodeLeft int // CSS-left van de avatar in de rij (inclusief RefW)
70 Tip string // tooltip: onderwerp, korte sha, auteur
69 71 }
70 72
71 73 // Edge is een lijn van een kind naar een ouder (of het einde van het venster).
@@ -152,16 +154,43 @@ type laneState struct {
152 154 // PanelMetrics zijn de paneelmaten voor N lanes, dezelfde formule als Layout.
153 155 // De stylesheet gebruikt deze waarden in de klassen .lanes-1 t/m .lanes-N,
154 156 // zodat er geen inline style-attributen nodig zijn (CSP style-src 'self').
155 func PanelMetrics(lanes int) (svgW, textX, panelW int) {
157 func PanelMetrics(lanes int) (svgW, textX, panelW, narrowW int) {
156 158 if lanes < 1 {
157 159 lanes = 1
158 160 }
159 161 svgW = lanes * LaneW
160 162 textX = svgW + TextPad
161 163 panelW = RefW + textX + MsgW
164 narrowW = RefW + textX
162 165 return
163 166 }
164 167
168 // LeafLabel is de branch- of tagnaam zonder alles t/m de laatste '/'.
169 // "feature/commit-graph-v5" wordt "commit-graph-v5". Zonder '/' blijft de naam gelijk.
170 func LeafLabel(name string) string {
171 name = strings.TrimPrefix(name, "refs/heads/")
172 name = strings.TrimPrefix(name, "refs/tags/")
173 if i := strings.LastIndex(name, "/"); i >= 0 && i+1 < len(name) {
174 return name[i+1:]
175 }
176 return name
177 }
178
179 // CommitTip is de hovertekst van een commit: onderwerp, korte sha en auteur.
180 func CommitTip(r Row) string {
181 var parts []string
182 if s := strings.TrimSpace(r.Subject); s != "" {
183 parts = append(parts, s)
184 }
185 if s := strings.TrimSpace(r.Short); s != "" {
186 parts = append(parts, s)
187 }
188 if s := strings.TrimSpace(r.Author); s != "" {
189 parts = append(parts, s)
190 }
191 return strings.Join(parts, " · ")
192 }
193
165 194 func Layout(commits []Commit, refs []Ref, defaultBranch string) *Graph {
166 195 g := &Graph{}
167 196 if len(commits) == 0 {
@@ -295,6 +324,7 @@ func Layout(commits []Commit, refs []Ref, defaultBranch string) *Graph {
295 324 for i := range g.Rows {
296 325 g.Rows[i].NodeX = laneX(g.Rows[i].Lane)
297 326 g.Rows[i].NodeLeft = RefW + int(math.Round(g.Rows[i].NodeX-DotR))
327 g.Rows[i].Tip = CommitTip(g.Rows[i])
298 328 }
299 329 return g
300 330 }
@@ -325,7 +355,7 @@ func labelsBySHA(refs []Ref, defaultBranch string) map[string][]Label {
325 355 if r.SHA == "" || r.Name == "" {
326 356 continue
327 357 }
328 lb := Label{Name: shortName(r.Name), Ref: r.Name, Kind: r.Kind, Color: Color(r.Name, defaultBranch), Default: r.Kind == "branch" && r.Name == defaultBranch}
358 lb := Label{Name: shortName(r.Name), Short: LeafLabel(r.Name), Ref: r.Name, Kind: r.Kind, Color: Color(r.Name, defaultBranch), Default: r.Kind == "branch" && r.Name == defaultBranch}
329 359 if r.Kind == "tag" {
330 360 lb.Color = "var(--muted)"
331 361 lb.Class = "is-tag"
@@ -50,6 +50,7 @@ type Ref struct {
50// Ref is de volledige naam (voor de dropdown en de gloed).
50// Ref is de volledige naam (voor de dropdown en de gloed).
51type Label struct {
51type Label struct {
52 Name, Ref, Kind, Color, Class string
52 Name, Ref, Kind, Color, Class string
53 Short string // bladnaam na de laatste '/', voor de smalle modus
53 Default bool
54 Default bool
54}
55}
55
56
@@ -66,6 +67,7 @@ type Row struct {
66 UserURL string
67 UserURL string
67 NodeX float64 // midden van de avatar, in SVG-coördinaten (gelijk aan de lane-x)
68 NodeX float64 // midden van de avatar, in SVG-coördinaten (gelijk aan de lane-x)
68 NodeLeft int // CSS-left van de avatar in de rij (inclusief RefW)
69 NodeLeft int // CSS-left van de avatar in de rij (inclusief RefW)
70 Tip string // tooltip: onderwerp, korte sha, auteur
69}
71}
70
72
71// Edge is een lijn van een kind naar een ouder (of het einde van het venster).
73// Edge is een lijn van een kind naar een ouder (of het einde van het venster).
@@ -152,16 +154,43 @@ type laneState struct {
152// PanelMetrics zijn de paneelmaten voor N lanes, dezelfde formule als Layout.
154// PanelMetrics zijn de paneelmaten voor N lanes, dezelfde formule als Layout.
153// De stylesheet gebruikt deze waarden in de klassen .lanes-1 t/m .lanes-N,
155// De stylesheet gebruikt deze waarden in de klassen .lanes-1 t/m .lanes-N,
154// zodat er geen inline style-attributen nodig zijn (CSP style-src 'self').
156// zodat er geen inline style-attributen nodig zijn (CSP style-src 'self').
155func PanelMetrics(lanes int) (svgW, textX, panelW int) {
157func PanelMetrics(lanes int) (svgW, textX, panelW, narrowW int) {
156 if lanes < 1 {
158 if lanes < 1 {
157 lanes = 1
159 lanes = 1
158 }
160 }
159 svgW = lanes * LaneW
161 svgW = lanes * LaneW
160 textX = svgW + TextPad
162 textX = svgW + TextPad
161 panelW = RefW + textX + MsgW
163 panelW = RefW + textX + MsgW
164 narrowW = RefW + textX
162 return
165 return
163}
166}
164
167
168// LeafLabel is de branch- of tagnaam zonder alles t/m de laatste '/'.
169// "feature/commit-graph-v5" wordt "commit-graph-v5". Zonder '/' blijft de naam gelijk.
170func LeafLabel(name string) string {
171 name = strings.TrimPrefix(name, "refs/heads/")
172 name = strings.TrimPrefix(name, "refs/tags/")
173 if i := strings.LastIndex(name, "/"); i >= 0 && i+1 < len(name) {
174 return name[i+1:]
175 }
176 return name
177}
178
179// CommitTip is de hovertekst van een commit: onderwerp, korte sha en auteur.
180func CommitTip(r Row) string {
181 var parts []string
182 if s := strings.TrimSpace(r.Subject); s != "" {
183 parts = append(parts, s)
184 }
185 if s := strings.TrimSpace(r.Short); s != "" {
186 parts = append(parts, s)
187 }
188 if s := strings.TrimSpace(r.Author); s != "" {
189 parts = append(parts, s)
190 }
191 return strings.Join(parts, " · ")
192}
193
165func Layout(commits []Commit, refs []Ref, defaultBranch string) *Graph {
194func Layout(commits []Commit, refs []Ref, defaultBranch string) *Graph {
166 g := &Graph{}
195 g := &Graph{}
167 if len(commits) == 0 {
196 if len(commits) == 0 {
@@ -295,6 +324,7 @@ func Layout(commits []Commit, refs []Ref, defaultBranch string) *Graph {
295 for i := range g.Rows {
324 for i := range g.Rows {
296 g.Rows[i].NodeX = laneX(g.Rows[i].Lane)
325 g.Rows[i].NodeX = laneX(g.Rows[i].Lane)
297 g.Rows[i].NodeLeft = RefW + int(math.Round(g.Rows[i].NodeX-DotR))
326 g.Rows[i].NodeLeft = RefW + int(math.Round(g.Rows[i].NodeX-DotR))
327 g.Rows[i].Tip = CommitTip(g.Rows[i])
298 }
328 }
299 return g
329 return g
300}
330}
@@ -325,7 +355,7 @@ func labelsBySHA(refs []Ref, defaultBranch string) map[string][]Label {
325 if r.SHA == "" || r.Name == "" {
355 if r.SHA == "" || r.Name == "" {
326 continue
356 continue
327 }
357 }
328 lb := Label{Name: shortName(r.Name), Ref: r.Name, Kind: r.Kind, Color: Color(r.Name, defaultBranch), Default: r.Kind == "branch" && r.Name == defaultBranch}
358 lb := Label{Name: shortName(r.Name), Short: LeafLabel(r.Name), Ref: r.Name, Kind: r.Kind, Color: Color(r.Name, defaultBranch), Default: r.Kind == "branch" && r.Name == defaultBranch}
329 if r.Kind == "tag" {
359 if r.Kind == "tag" {
330 lb.Color = "var(--muted)"
360 lb.Color = "var(--muted)"
331 lb.Class = "is-tag"
361 lb.Class = "is-tag"
internal/gitgraph/graph_test.go +56 −0
@@ -374,3 +374,59 @@ func TestTextXClearsAllGeometry(t *testing.T) {
374 374 }
375 375 }
376 376 }
377
378 func TestLeafLabel(t *testing.T) {
379 cases := map[string]string{
380 "feature/commit-graph-v5": "commit-graph-v5",
381 "refs/heads/feature/commit-graph-v5": "commit-graph-v5",
382 "a/b/c": "c",
383 "master": "master",
384 "refs/tags/v1.2": "v1.2",
385 "feature/": "feature/",
386 "": "",
387 }
388 for in, want := range cases {
389 if got := LeafLabel(in); got != want {
390 t.Errorf("LeafLabel(%q)=%q, wil %q", in, got, want)
391 }
392 }
393 }
394
395 func TestCommitTipIncludesSubjectSHAAndAuthor(t *testing.T) {
396 got := CommitTip(Row{Commit: Commit{Subject: "merge feature", Short: "e5d0eb4b", Author: "tim"}})
397 if got != "merge feature · e5d0eb4b · tim" {
398 t.Fatalf("tip=%q", got)
399 }
400 if CommitTip(Row{Commit: Commit{Subject: "only"}}) != "only" {
401 t.Fatalf("korte tip is verkeerd")
402 }
403 }
404
405 func TestLayoutSetsShortLabelAndTip(t *testing.T) {
406 refs := []Ref{
407 {Name: "master", SHA: "m", Kind: "branch"},
408 {Name: "feature/commit-graph-v5", SHA: "f", Kind: "branch"},
409 }
410 g := Layout([]Commit{
411 {SHA: "f", Short: "fffffff", Subject: "work", Author: "tim", Parents: []string{"b"}},
412 {SHA: "m", Short: "mmmmmmm", Subject: "merge", Author: "tim", Parents: []string{"b"}},
413 {SHA: "b", Short: "bbbbbbb", Subject: "base", Author: "tim"},
414 }, refs, "master")
415 var found bool
416 for _, r := range g.Rows {
417 if r.Tip == "" {
418 t.Fatalf("commit %s mist tip", r.SHA)
419 }
420 for _, lb := range r.Labels {
421 if lb.Ref == "feature/commit-graph-v5" || lb.Name == "feature/commit-graph-v5" || lb.Short == "commit-graph-v5" {
422 found = true
423 if lb.Short != "commit-graph-v5" {
424 t.Fatalf("Short=%q, wil commit-graph-v5 (Name=%q Ref=%q)", lb.Short, lb.Name, lb.Ref)
425 }
426 }
427 }
428 }
429 if !found {
430 t.Fatal("feature/commit-graph-v5 label ontbreekt of Short is leeg")
431 }
432 }
@@ -374,3 +374,59 @@ func TestTextXClearsAllGeometry(t *testing.T) {
374 }
374 }
375 }
375 }
376}
376}
377
378func TestLeafLabel(t *testing.T) {
379 cases := map[string]string{
380 "feature/commit-graph-v5": "commit-graph-v5",
381 "refs/heads/feature/commit-graph-v5": "commit-graph-v5",
382 "a/b/c": "c",
383 "master": "master",
384 "refs/tags/v1.2": "v1.2",
385 "feature/": "feature/",
386 "": "",
387 }
388 for in, want := range cases {
389 if got := LeafLabel(in); got != want {
390 t.Errorf("LeafLabel(%q)=%q, wil %q", in, got, want)
391 }
392 }
393}
394
395func TestCommitTipIncludesSubjectSHAAndAuthor(t *testing.T) {
396 got := CommitTip(Row{Commit: Commit{Subject: "merge feature", Short: "e5d0eb4b", Author: "tim"}})
397 if got != "merge feature · e5d0eb4b · tim" {
398 t.Fatalf("tip=%q", got)
399 }
400 if CommitTip(Row{Commit: Commit{Subject: "only"}}) != "only" {
401 t.Fatalf("korte tip is verkeerd")
402 }
403}
404
405func TestLayoutSetsShortLabelAndTip(t *testing.T) {
406 refs := []Ref{
407 {Name: "master", SHA: "m", Kind: "branch"},
408 {Name: "feature/commit-graph-v5", SHA: "f", Kind: "branch"},
409 }
410 g := Layout([]Commit{
411 {SHA: "f", Short: "fffffff", Subject: "work", Author: "tim", Parents: []string{"b"}},
412 {SHA: "m", Short: "mmmmmmm", Subject: "merge", Author: "tim", Parents: []string{"b"}},
413 {SHA: "b", Short: "bbbbbbb", Subject: "base", Author: "tim"},
414 }, refs, "master")
415 var found bool
416 for _, r := range g.Rows {
417 if r.Tip == "" {
418 t.Fatalf("commit %s mist tip", r.SHA)
419 }
420 for _, lb := range r.Labels {
421 if lb.Ref == "feature/commit-graph-v5" || lb.Name == "feature/commit-graph-v5" || lb.Short == "commit-graph-v5" {
422 found = true
423 if lb.Short != "commit-graph-v5" {
424 t.Fatalf("Short=%q, wil commit-graph-v5 (Name=%q Ref=%q)", lb.Short, lb.Name, lb.Ref)
425 }
426 }
427 }
428 }
429 if !found {
430 t.Fatal("feature/commit-graph-v5 label ontbreekt of Short is leeg")
431 }
432}
internal/gitgraph/svg.go +6 −3
@@ -61,13 +61,16 @@ func writeSVGNodes(b *strings.Builder, rows []Row, commitBase string) {
61 61 if commitBase != "" && r.SHA != "" {
62 62 fmt.Fprintf(b, ` href="%s"`, html.EscapeString(commitBase+r.SHA))
63 63 }
64 if r.Short != "" {
65 fmt.Fprintf(b, ` title="%s"`, html.EscapeString(r.Short))
66 }
67 64 if r.Branch != "" {
68 65 fmt.Fprintf(b, ` data-branch="%s"`, html.EscapeString(r.Branch))
69 66 }
67 if tip := r.Tip; tip != "" {
68 fmt.Fprintf(b, ` aria-label="%s"`, html.EscapeString(tip))
69 }
70 70 b.WriteByte('>')
71 if r.Tip != "" {
72 fmt.Fprintf(b, `<title>%s</title>`, html.EscapeString(r.Tip))
73 }
71 74 col := safeColor(r.Color)
72 75 cls := ColorClass(r.Color)
73 76 fmt.Fprintf(b, `<circle cx="%.1f" cy="%.1f" r="%.0f" fill="%s"`, x, y, DotR, col)
@@ -61,13 +61,16 @@ func writeSVGNodes(b *strings.Builder, rows []Row, commitBase string) {
61 if commitBase != "" && r.SHA != "" {
61 if commitBase != "" && r.SHA != "" {
62 fmt.Fprintf(b, ` href="%s"`, html.EscapeString(commitBase+r.SHA))
62 fmt.Fprintf(b, ` href="%s"`, html.EscapeString(commitBase+r.SHA))
63 }
63 }
64 if r.Short != "" {
65 fmt.Fprintf(b, ` title="%s"`, html.EscapeString(r.Short))
66 }
67 if r.Branch != "" {
64 if r.Branch != "" {
68 fmt.Fprintf(b, ` data-branch="%s"`, html.EscapeString(r.Branch))
65 fmt.Fprintf(b, ` data-branch="%s"`, html.EscapeString(r.Branch))
69 }
66 }
67 if tip := r.Tip; tip != "" {
68 fmt.Fprintf(b, ` aria-label="%s"`, html.EscapeString(tip))
69 }
70 b.WriteByte('>')
70 b.WriteByte('>')
71 if r.Tip != "" {
72 fmt.Fprintf(b, `<title>%s</title>`, html.EscapeString(r.Tip))
73 }
71 col := safeColor(r.Color)
74 col := safeColor(r.Color)
72 cls := ColorClass(r.Color)
75 cls := ColorClass(r.Color)
73 fmt.Fprintf(b, `<circle cx="%.1f" cy="%.1f" r="%.0f" fill="%s"`, x, y, DotR, col)
76 fmt.Fprintf(b, `<circle cx="%.1f" cy="%.1f" r="%.0f" fill="%s"`, x, y, DotR, col)
internal/gitgraph/svg_test.go +17 −0
@@ -216,3 +216,20 @@ func TestSVGNodesSitOnLanes(t *testing.T) {
216 216 func sprintfCx(x float64) string {
217 217 return `cx="` + strconv.FormatFloat(x, 'f', 1, 64) + `"`
218 218 }
219
220 func TestSVGNodeHasTitleTooltip(t *testing.T) {
221 refs := []Ref{{Name: "master", SHA: "m", Kind: "branch"}}
222 g := Layout(commits("m:"), refs, "master")
223 if g.Rows[0].Tip == "" {
224 g.Rows[0].Tip = CommitTip(g.Rows[0])
225 }
226 svg := g.SVG()
227 if !strings.Contains(svg, "<title>") {
228 t.Fatalf("svg-knoop mist <title> voor de tooltip: %s", svg)
229 }
230 if !strings.Contains(svg, htmlEscapeCheck(g.Rows[0].Tip)) && !strings.Contains(svg, g.Rows[0].Subject) && !strings.Contains(svg, "msg-m") {
231 t.Fatalf("tip-tekst ontbreekt in <title>: %s", svg)
232 }
233 }
234
235 func htmlEscapeCheck(s string) string { return s }
@@ -216,3 +216,20 @@ func TestSVGNodesSitOnLanes(t *testing.T) {
216func sprintfCx(x float64) string {
216func sprintfCx(x float64) string {
217 return `cx="` + strconv.FormatFloat(x, 'f', 1, 64) + `"`
217 return `cx="` + strconv.FormatFloat(x, 'f', 1, 64) + `"`
218}
218}
219
220func TestSVGNodeHasTitleTooltip(t *testing.T) {
221 refs := []Ref{{Name: "master", SHA: "m", Kind: "branch"}}
222 g := Layout(commits("m:"), refs, "master")
223 if g.Rows[0].Tip == "" {
224 g.Rows[0].Tip = CommitTip(g.Rows[0])
225 }
226 svg := g.SVG()
227 if !strings.Contains(svg, "<title>") {
228 t.Fatalf("svg-knoop mist <title> voor de tooltip: %s", svg)
229 }
230 if !strings.Contains(svg, htmlEscapeCheck(g.Rows[0].Tip)) && !strings.Contains(svg, g.Rows[0].Subject) && !strings.Contains(svg, "msg-m") {
231 t.Fatalf("tip-tekst ontbreekt in <title>: %s", svg)
232 }
233}
234
235func htmlEscapeCheck(s string) string { return s }
internal/server/commitgraph_test.go +33 −5
@@ -271,24 +271,29 @@ func TestGraphCSSDoesNotShrinkLanes(t *testing.T) {
271 271 "text-overflow: ellipsis",
272 272 "--graph-lanes-w",
273 273 ".commitgraph-slot.lanes-1 {",
274 ".commitgraph-slot.lanes-5 { --lanes: 5; --graph-svg-w: 140px; --graph-lanes-w: 148px; --graph-w: 406px; }",
274 ".commitgraph-slot.lanes-5 { --lanes: 5; --graph-svg-w: 140px; --graph-lanes-w: 148px; --graph-w: 406px; --graph-narrow-w: 226px; }",
275 275 "@container maincol (min-width: 1142px)",
276 276 "@media (min-width: 1400px)",
277 277 "@media (min-width: 1160px)",
278 ".commitgraph-slot:not(.is-right) { display: none !important; }",
278 "@media (min-width: 721px)",
279 "content: attr(data-tip)",
280 ".commitgraph-ref-short",
281 ".commitgraph-msg { display: none; }",
279 282 } {
280 283 if !strings.Contains(s, want) {
281 284 t.Fatalf("stylesheet mist %q", want)
282 285 }
283 286 }
284 svgW, textX, panelW := gitgraph.PanelMetrics(5)
285 if svgW != 140 || textX != 148 || panelW != 406 {
286 t.Fatalf("PanelMetrics(5)=%d,%d,%d, wil 140,148,406", svgW, textX, panelW)
287 svgW, textX, panelW, narrowW := gitgraph.PanelMetrics(5)
288 if svgW != 140 || textX != 148 || panelW != 406 || narrowW != 226 {
289 t.Fatalf("PanelMetrics(5)=%d,%d,%d,%d, wil 140,148,406,226", svgW, textX, panelW, narrowW)
287 290 }
288 291 for _, old := range []string{
289 292 "@media (min-width: 1860px)",
290 293 "@media (min-width: 1140px)",
291 294 "@container maincol (min-width: 900px)",
295 "@media (max-width: 1399px)",
296 "@media (max-width: 1159px)",
292 297 } {
293 298 if strings.Contains(s, old) {
294 299 t.Fatalf("oude drempel %q knijpt de hoofdkolom of verbergt de grafiek verkeerd", old)
@@ -345,3 +350,26 @@ func TestOverviewGraphFollowsCSP(t *testing.T) {
345 350 t.Fatal("svg-knopen ontbreken")
346 351 }
347 352 }
353
354 func TestOverviewNarrowMarkupAndTooltips(t *testing.T) {
355 ts, client, _ := graphTestRepo(t)
356 page := read(t, mustGet(t, client, ts.URL+"/tim/grafiek"))
357 if !strings.Contains(page, `data-tip="`) {
358 t.Fatalf("rijen missen data-tip voor de hovertekst:\n%s", page)
359 }
360 if !strings.Contains(page, `class="commitgraph-ref-short"`) || !strings.Contains(page, `class="commitgraph-ref-full"`) {
361 t.Fatalf("korte en lange branchlabels ontbreken:\n%s", page)
362 }
363 if !strings.Contains(page, "<title>") {
364 t.Fatalf("svg mist <title> als tooltip-basis:\n%s", page)
365 }
366 if !strings.Contains(page, `class="commitgraph-msg"`) {
367 t.Fatal("tekstkolom moet in de markup blijven (CSS verbergt hem in smalle modus)")
368 }
369 start := strings.Index(page, `class="commitgraph-slot`)
370 end := strings.Index(page[start:], "</aside>")
371 chunk := page[start : start+end]
372 if strings.Contains(chunk, "style=") {
373 t.Fatalf("grafiek heeft een style-attribuut: %s", chunk)
374 }
375 }
@@ -271,24 +271,29 @@ func TestGraphCSSDoesNotShrinkLanes(t *testing.T) {
271 "text-overflow: ellipsis",
271 "text-overflow: ellipsis",
272 "--graph-lanes-w",
272 "--graph-lanes-w",
273 ".commitgraph-slot.lanes-1 {",
273 ".commitgraph-slot.lanes-1 {",
274 ".commitgraph-slot.lanes-5 { --lanes: 5; --graph-svg-w: 140px; --graph-lanes-w: 148px; --graph-w: 406px; }",
274 ".commitgraph-slot.lanes-5 { --lanes: 5; --graph-svg-w: 140px; --graph-lanes-w: 148px; --graph-w: 406px; --graph-narrow-w: 226px; }",
275 "@container maincol (min-width: 1142px)",
275 "@container maincol (min-width: 1142px)",
276 "@media (min-width: 1400px)",
276 "@media (min-width: 1400px)",
277 "@media (min-width: 1160px)",
277 "@media (min-width: 1160px)",
278 ".commitgraph-slot:not(.is-right) { display: none !important; }",
278 "@media (min-width: 721px)",
279 "content: attr(data-tip)",
280 ".commitgraph-ref-short",
281 ".commitgraph-msg { display: none; }",
279 } {
282 } {
280 if !strings.Contains(s, want) {
283 if !strings.Contains(s, want) {
281 t.Fatalf("stylesheet mist %q", want)
284 t.Fatalf("stylesheet mist %q", want)
282 }
285 }
283 }
286 }
284 svgW, textX, panelW := gitgraph.PanelMetrics(5)
287 svgW, textX, panelW, narrowW := gitgraph.PanelMetrics(5)
285 if svgW != 140 || textX != 148 || panelW != 406 {
288 if svgW != 140 || textX != 148 || panelW != 406 || narrowW != 226 {
286 t.Fatalf("PanelMetrics(5)=%d,%d,%d, wil 140,148,406", svgW, textX, panelW)
289 t.Fatalf("PanelMetrics(5)=%d,%d,%d,%d, wil 140,148,406,226", svgW, textX, panelW, narrowW)
287 }
290 }
288 for _, old := range []string{
291 for _, old := range []string{
289 "@media (min-width: 1860px)",
292 "@media (min-width: 1860px)",
290 "@media (min-width: 1140px)",
293 "@media (min-width: 1140px)",
291 "@container maincol (min-width: 900px)",
294 "@container maincol (min-width: 900px)",
295 "@media (max-width: 1399px)",
296 "@media (max-width: 1159px)",
292 } {
297 } {
293 if strings.Contains(s, old) {
298 if strings.Contains(s, old) {
294 t.Fatalf("oude drempel %q knijpt de hoofdkolom of verbergt de grafiek verkeerd", old)
299 t.Fatalf("oude drempel %q knijpt de hoofdkolom of verbergt de grafiek verkeerd", old)
@@ -345,3 +350,26 @@ func TestOverviewGraphFollowsCSP(t *testing.T) {
345 t.Fatal("svg-knopen ontbreken")
350 t.Fatal("svg-knopen ontbreken")
346 }
351 }
347}
352}
353
354func TestOverviewNarrowMarkupAndTooltips(t *testing.T) {
355 ts, client, _ := graphTestRepo(t)
356 page := read(t, mustGet(t, client, ts.URL+"/tim/grafiek"))
357 if !strings.Contains(page, `data-tip="`) {
358 t.Fatalf("rijen missen data-tip voor de hovertekst:\n%s", page)
359 }
360 if !strings.Contains(page, `class="commitgraph-ref-short"`) || !strings.Contains(page, `class="commitgraph-ref-full"`) {
361 t.Fatalf("korte en lange branchlabels ontbreken:\n%s", page)
362 }
363 if !strings.Contains(page, "<title>") {
364 t.Fatalf("svg mist <title> als tooltip-basis:\n%s", page)
365 }
366 if !strings.Contains(page, `class="commitgraph-msg"`) {
367 t.Fatal("tekstkolom moet in de markup blijven (CSS verbergt hem in smalle modus)")
368 }
369 start := strings.Index(page, `class="commitgraph-slot`)
370 end := strings.Index(page[start:], "</aside>")
371 chunk := page[start : start+end]
372 if strings.Contains(chunk, "style=") {
373 t.Fatalf("grafiek heeft een style-attribuut: %s", chunk)
374 }
375}
internal/server/static/repo.js +16 −0
@@ -4,6 +4,21 @@
4 4 var raw = el.getAttribute("data-branch") || "";
5 5 return raw.split(/\s+/).indexOf(name) !== -1;
6 6 }
7 function bindCommitGraphTips(graph) {
8 if (graph.getAttribute("data-tips") === "1") return;
9 graph.setAttribute("data-tips", "1");
10 var rows = graph.querySelectorAll(".commitgraph-row");
11 graph.querySelectorAll("a.commitgraph-node").forEach(function (node, i) {
12 var row = rows[i];
13 if (!row) return;
14 var on = function () { row.classList.add("is-tip"); };
15 var off = function () { row.classList.remove("is-tip"); };
16 node.addEventListener("mouseenter", on);
17 node.addEventListener("mouseleave", off);
18 node.addEventListener("focus", on);
19 node.addEventListener("blur", off);
20 });
21 }
7 22 function applyCommitGraph() {
8 23 var slot = document.querySelector(".commitgraph-slot");
9 24 var graph = slot && slot.querySelector(".commitgraph");
@@ -14,6 +29,7 @@
14 29 graph.querySelectorAll("[data-branch]").forEach(function (el) {
15 30 el.classList.toggle("is-glow", branchMatch(el, name));
16 31 });
32 bindCommitGraphTips(graph);
17 33 slot.classList.remove("is-right", "is-hidden");
18 34 var rect = graph.getBoundingClientRect();
19 35 if (rect.width === 0) return;
@@ -4,6 +4,21 @@
4 var raw = el.getAttribute("data-branch") || "";
4 var raw = el.getAttribute("data-branch") || "";
5 return raw.split(/\s+/).indexOf(name) !== -1;
5 return raw.split(/\s+/).indexOf(name) !== -1;
6 }
6 }
7 function bindCommitGraphTips(graph) {
8 if (graph.getAttribute("data-tips") === "1") return;
9 graph.setAttribute("data-tips", "1");
10 var rows = graph.querySelectorAll(".commitgraph-row");
11 graph.querySelectorAll("a.commitgraph-node").forEach(function (node, i) {
12 var row = rows[i];
13 if (!row) return;
14 var on = function () { row.classList.add("is-tip"); };
15 var off = function () { row.classList.remove("is-tip"); };
16 node.addEventListener("mouseenter", on);
17 node.addEventListener("mouseleave", off);
18 node.addEventListener("focus", on);
19 node.addEventListener("blur", off);
20 });
21 }
7 function applyCommitGraph() {
22 function applyCommitGraph() {
8 var slot = document.querySelector(".commitgraph-slot");
23 var slot = document.querySelector(".commitgraph-slot");
9 var graph = slot && slot.querySelector(".commitgraph");
24 var graph = slot && slot.querySelector(".commitgraph");
@@ -14,6 +29,7 @@
14 graph.querySelectorAll("[data-branch]").forEach(function (el) {
29 graph.querySelectorAll("[data-branch]").forEach(function (el) {
15 el.classList.toggle("is-glow", branchMatch(el, name));
30 el.classList.toggle("is-glow", branchMatch(el, name));
16 });
31 });
32 bindCommitGraphTips(graph);
17 slot.classList.remove("is-right", "is-hidden");
33 slot.classList.remove("is-right", "is-hidden");
18 var rect = graph.getBoundingClientRect();
34 var rect = graph.getBoundingClientRect();
19 if (rect.width === 0) return;
35 if (rect.width === 0) return;
internal/server/static/style.css +160 −61
@@ -28,6 +28,7 @@
28 28 --content: 1180px;
29 29 --top-h: 48px;
30 30 --graph-w: 400px;
31 --graph-narrow-w: 226px;
31 32 --graph-gap: 16px;
32 33 --graph-ref-w: 78px;
33 34 --graph-row: 28px;
@@ -1533,53 +1534,55 @@ form.cancelform { display: inline; }
1533 1534
1534 1535 /* Commitgrafiek links van de centrale kolom. Avatars zitten in de
1535 1536 SVG op de lane-x. Breedtes komen uit .lanes-N in dit stylesheet,
1536 niet uit inline style-attributen (CSP style-src 'self'). De grafiek
1537 krimpt niet; te lange tekst krijgt een ellipsis. Past hij links niet
1538 zonder de hoofdkolom te knijpen, dan hangt hij rechts of blijft hij
1537 niet uit inline style-attributen (CSP style-src 'self'). Op brede
1538 schermen staat de tekstkolom rechts van de lanes; op middelbrede
1539 schermen (tot ~1400px met sidebar) een smalle modus zonder
1540 committekst, met tooltip bij hover. Alleen op mobiel blijft hij
1539 1541 verborgen. */
1540 1542 /* Paneelmaten per lanettal. Geen inline styles: CSP style-src is
1541 1543 'self' zonder unsafe-inline, dus custom properties komen uit deze
1542 klassen (niet uit style="--graph-w: …"). */
1543 .commitgraph-slot.lanes-1 { --lanes: 1; --graph-svg-w: 28px; --graph-lanes-w: 36px; --graph-w: 294px; }
1544 .commitgraph-slot.lanes-2 { --lanes: 2; --graph-svg-w: 56px; --graph-lanes-w: 64px; --graph-w: 322px; }
1545 .commitgraph-slot.lanes-3 { --lanes: 3; --graph-svg-w: 84px; --graph-lanes-w: 92px; --graph-w: 350px; }
1546 .commitgraph-slot.lanes-4 { --lanes: 4; --graph-svg-w: 112px; --graph-lanes-w: 120px; --graph-w: 378px; }
1547 .commitgraph-slot.lanes-5 { --lanes: 5; --graph-svg-w: 140px; --graph-lanes-w: 148px; --graph-w: 406px; }
1548 .commitgraph-slot.lanes-6 { --lanes: 6; --graph-svg-w: 168px; --graph-lanes-w: 176px; --graph-w: 434px; }
1549 .commitgraph-slot.lanes-7 { --lanes: 7; --graph-svg-w: 196px; --graph-lanes-w: 204px; --graph-w: 462px; }
1550 .commitgraph-slot.lanes-8 { --lanes: 8; --graph-svg-w: 224px; --graph-lanes-w: 232px; --graph-w: 490px; }
1551 .commitgraph-slot.lanes-9 { --lanes: 9; --graph-svg-w: 252px; --graph-lanes-w: 260px; --graph-w: 518px; }
1552 .commitgraph-slot.lanes-10 { --lanes: 10; --graph-svg-w: 280px; --graph-lanes-w: 288px; --graph-w: 546px; }
1553 .commitgraph-slot.lanes-11 { --lanes: 11; --graph-svg-w: 308px; --graph-lanes-w: 316px; --graph-w: 574px; }
1554 .commitgraph-slot.lanes-12 { --lanes: 12; --graph-svg-w: 336px; --graph-lanes-w: 344px; --graph-w: 602px; }
1555 .commitgraph-slot.lanes-13 { --lanes: 13; --graph-svg-w: 364px; --graph-lanes-w: 372px; --graph-w: 630px; }
1556 .commitgraph-slot.lanes-14 { --lanes: 14; --graph-svg-w: 392px; --graph-lanes-w: 400px; --graph-w: 658px; }
1557 .commitgraph-slot.lanes-15 { --lanes: 15; --graph-svg-w: 420px; --graph-lanes-w: 428px; --graph-w: 686px; }
1558 .commitgraph-slot.lanes-16 { --lanes: 16; --graph-svg-w: 448px; --graph-lanes-w: 456px; --graph-w: 714px; }
1559 .commitgraph-slot.lanes-17 { --lanes: 17; --graph-svg-w: 476px; --graph-lanes-w: 484px; --graph-w: 742px; }
1560 .commitgraph-slot.lanes-18 { --lanes: 18; --graph-svg-w: 504px; --graph-lanes-w: 512px; --graph-w: 770px; }
1561 .commitgraph-slot.lanes-19 { --lanes: 19; --graph-svg-w: 532px; --graph-lanes-w: 540px; --graph-w: 798px; }
1562 .commitgraph-slot.lanes-20 { --lanes: 20; --graph-svg-w: 560px; --graph-lanes-w: 568px; --graph-w: 826px; }
1563 .commitgraph-slot.lanes-21 { --lanes: 21; --graph-svg-w: 588px; --graph-lanes-w: 596px; --graph-w: 854px; }
1564 .commitgraph-slot.lanes-22 { --lanes: 22; --graph-svg-w: 616px; --graph-lanes-w: 624px; --graph-w: 882px; }
1565 .commitgraph-slot.lanes-23 { --lanes: 23; --graph-svg-w: 644px; --graph-lanes-w: 652px; --graph-w: 910px; }
1566 .commitgraph-slot.lanes-24 { --lanes: 24; --graph-svg-w: 672px; --graph-lanes-w: 680px; --graph-w: 938px; }
1567 .commitgraph-slot.lanes-25 { --lanes: 25; --graph-svg-w: 700px; --graph-lanes-w: 708px; --graph-w: 966px; }
1568 .commitgraph-slot.lanes-26 { --lanes: 26; --graph-svg-w: 728px; --graph-lanes-w: 736px; --graph-w: 994px; }
1569 .commitgraph-slot.lanes-27 { --lanes: 27; --graph-svg-w: 756px; --graph-lanes-w: 764px; --graph-w: 1022px; }
1570 .commitgraph-slot.lanes-28 { --lanes: 28; --graph-svg-w: 784px; --graph-lanes-w: 792px; --graph-w: 1050px; }
1571 .commitgraph-slot.lanes-29 { --lanes: 29; --graph-svg-w: 812px; --graph-lanes-w: 820px; --graph-w: 1078px; }
1572 .commitgraph-slot.lanes-30 { --lanes: 30; --graph-svg-w: 840px; --graph-lanes-w: 848px; --graph-w: 1106px; }
1573 .commitgraph-slot.lanes-31 { --lanes: 31; --graph-svg-w: 868px; --graph-lanes-w: 876px; --graph-w: 1134px; }
1574 .commitgraph-slot.lanes-32 { --lanes: 32; --graph-svg-w: 896px; --graph-lanes-w: 904px; --graph-w: 1162px; }
1575 .commitgraph-slot.lanes-33 { --lanes: 33; --graph-svg-w: 924px; --graph-lanes-w: 932px; --graph-w: 1190px; }
1576 .commitgraph-slot.lanes-34 { --lanes: 34; --graph-svg-w: 952px; --graph-lanes-w: 960px; --graph-w: 1218px; }
1577 .commitgraph-slot.lanes-35 { --lanes: 35; --graph-svg-w: 980px; --graph-lanes-w: 988px; --graph-w: 1246px; }
1578 .commitgraph-slot.lanes-36 { --lanes: 36; --graph-svg-w: 1008px; --graph-lanes-w: 1016px; --graph-w: 1274px; }
1579 .commitgraph-slot.lanes-37 { --lanes: 37; --graph-svg-w: 1036px; --graph-lanes-w: 1044px; --graph-w: 1302px; }
1580 .commitgraph-slot.lanes-38 { --lanes: 38; --graph-svg-w: 1064px; --graph-lanes-w: 1072px; --graph-w: 1330px; }
1581 .commitgraph-slot.lanes-39 { --lanes: 39; --graph-svg-w: 1092px; --graph-lanes-w: 1100px; --graph-w: 1358px; }
1582 .commitgraph-slot.lanes-40 { --lanes: 40; --graph-svg-w: 1120px; --graph-lanes-w: 1128px; --graph-w: 1386px; }
1544 klassen (niet uit style="--graph-w: …"). --graph-w is de brede modus
1545 (inclusief tekstkolom); --graph-narrow-w is zonder tekstkolom. */
1546 .commitgraph-slot.lanes-1 { --lanes: 1; --graph-svg-w: 28px; --graph-lanes-w: 36px; --graph-w: 294px; --graph-narrow-w: 114px; }
1547 .commitgraph-slot.lanes-2 { --lanes: 2; --graph-svg-w: 56px; --graph-lanes-w: 64px; --graph-w: 322px; --graph-narrow-w: 142px; }
1548 .commitgraph-slot.lanes-3 { --lanes: 3; --graph-svg-w: 84px; --graph-lanes-w: 92px; --graph-w: 350px; --graph-narrow-w: 170px; }
1549 .commitgraph-slot.lanes-4 { --lanes: 4; --graph-svg-w: 112px; --graph-lanes-w: 120px; --graph-w: 378px; --graph-narrow-w: 198px; }
1550 .commitgraph-slot.lanes-5 { --lanes: 5; --graph-svg-w: 140px; --graph-lanes-w: 148px; --graph-w: 406px; --graph-narrow-w: 226px; }
1551 .commitgraph-slot.lanes-6 { --lanes: 6; --graph-svg-w: 168px; --graph-lanes-w: 176px; --graph-w: 434px; --graph-narrow-w: 254px; }
1552 .commitgraph-slot.lanes-7 { --lanes: 7; --graph-svg-w: 196px; --graph-lanes-w: 204px; --graph-w: 462px; --graph-narrow-w: 282px; }
1553 .commitgraph-slot.lanes-8 { --lanes: 8; --graph-svg-w: 224px; --graph-lanes-w: 232px; --graph-w: 490px; --graph-narrow-w: 310px; }
1554 .commitgraph-slot.lanes-9 { --lanes: 9; --graph-svg-w: 252px; --graph-lanes-w: 260px; --graph-w: 518px; --graph-narrow-w: 338px; }
1555 .commitgraph-slot.lanes-10 { --lanes: 10; --graph-svg-w: 280px; --graph-lanes-w: 288px; --graph-w: 546px; --graph-narrow-w: 366px; }
1556 .commitgraph-slot.lanes-11 { --lanes: 11; --graph-svg-w: 308px; --graph-lanes-w: 316px; --graph-w: 574px; --graph-narrow-w: 394px; }
1557 .commitgraph-slot.lanes-12 { --lanes: 12; --graph-svg-w: 336px; --graph-lanes-w: 344px; --graph-w: 602px; --graph-narrow-w: 422px; }
1558 .commitgraph-slot.lanes-13 { --lanes: 13; --graph-svg-w: 364px; --graph-lanes-w: 372px; --graph-w: 630px; --graph-narrow-w: 450px; }
1559 .commitgraph-slot.lanes-14 { --lanes: 14; --graph-svg-w: 392px; --graph-lanes-w: 400px; --graph-w: 658px; --graph-narrow-w: 478px; }
1560 .commitgraph-slot.lanes-15 { --lanes: 15; --graph-svg-w: 420px; --graph-lanes-w: 428px; --graph-w: 686px; --graph-narrow-w: 506px; }
1561 .commitgraph-slot.lanes-16 { --lanes: 16; --graph-svg-w: 448px; --graph-lanes-w: 456px; --graph-w: 714px; --graph-narrow-w: 534px; }
1562 .commitgraph-slot.lanes-17 { --lanes: 17; --graph-svg-w: 476px; --graph-lanes-w: 484px; --graph-w: 742px; --graph-narrow-w: 562px; }
1563 .commitgraph-slot.lanes-18 { --lanes: 18; --graph-svg-w: 504px; --graph-lanes-w: 512px; --graph-w: 770px; --graph-narrow-w: 590px; }
1564 .commitgraph-slot.lanes-19 { --lanes: 19; --graph-svg-w: 532px; --graph-lanes-w: 540px; --graph-w: 798px; --graph-narrow-w: 618px; }
1565 .commitgraph-slot.lanes-20 { --lanes: 20; --graph-svg-w: 560px; --graph-lanes-w: 568px; --graph-w: 826px; --graph-narrow-w: 646px; }
1566 .commitgraph-slot.lanes-21 { --lanes: 21; --graph-svg-w: 588px; --graph-lanes-w: 596px; --graph-w: 854px; --graph-narrow-w: 674px; }
1567 .commitgraph-slot.lanes-22 { --lanes: 22; --graph-svg-w: 616px; --graph-lanes-w: 624px; --graph-w: 882px; --graph-narrow-w: 702px; }
1568 .commitgraph-slot.lanes-23 { --lanes: 23; --graph-svg-w: 644px; --graph-lanes-w: 652px; --graph-w: 910px; --graph-narrow-w: 730px; }
1569 .commitgraph-slot.lanes-24 { --lanes: 24; --graph-svg-w: 672px; --graph-lanes-w: 680px; --graph-w: 938px; --graph-narrow-w: 758px; }
1570 .commitgraph-slot.lanes-25 { --lanes: 25; --graph-svg-w: 700px; --graph-lanes-w: 708px; --graph-w: 966px; --graph-narrow-w: 786px; }
1571 .commitgraph-slot.lanes-26 { --lanes: 26; --graph-svg-w: 728px; --graph-lanes-w: 736px; --graph-w: 994px; --graph-narrow-w: 814px; }
1572 .commitgraph-slot.lanes-27 { --lanes: 27; --graph-svg-w: 756px; --graph-lanes-w: 764px; --graph-w: 1022px; --graph-narrow-w: 842px; }
1573 .commitgraph-slot.lanes-28 { --lanes: 28; --graph-svg-w: 784px; --graph-lanes-w: 792px; --graph-w: 1050px; --graph-narrow-w: 870px; }
1574 .commitgraph-slot.lanes-29 { --lanes: 29; --graph-svg-w: 812px; --graph-lanes-w: 820px; --graph-w: 1078px; --graph-narrow-w: 898px; }
1575 .commitgraph-slot.lanes-30 { --lanes: 30; --graph-svg-w: 840px; --graph-lanes-w: 848px; --graph-w: 1106px; --graph-narrow-w: 926px; }
1576 .commitgraph-slot.lanes-31 { --lanes: 31; --graph-svg-w: 868px; --graph-lanes-w: 876px; --graph-w: 1134px; --graph-narrow-w: 954px; }
1577 .commitgraph-slot.lanes-32 { --lanes: 32; --graph-svg-w: 896px; --graph-lanes-w: 904px; --graph-w: 1162px; --graph-narrow-w: 982px; }
1578 .commitgraph-slot.lanes-33 { --lanes: 33; --graph-svg-w: 924px; --graph-lanes-w: 932px; --graph-w: 1190px; --graph-narrow-w: 1010px; }
1579 .commitgraph-slot.lanes-34 { --lanes: 34; --graph-svg-w: 952px; --graph-lanes-w: 960px; --graph-w: 1218px; --graph-narrow-w: 1038px; }
1580 .commitgraph-slot.lanes-35 { --lanes: 35; --graph-svg-w: 980px; --graph-lanes-w: 988px; --graph-w: 1246px; --graph-narrow-w: 1066px; }
1581 .commitgraph-slot.lanes-36 { --lanes: 36; --graph-svg-w: 1008px; --graph-lanes-w: 1016px; --graph-w: 1274px; --graph-narrow-w: 1094px; }
1582 .commitgraph-slot.lanes-37 { --lanes: 37; --graph-svg-w: 1036px; --graph-lanes-w: 1044px; --graph-w: 1302px; --graph-narrow-w: 1122px; }
1583 .commitgraph-slot.lanes-38 { --lanes: 38; --graph-svg-w: 1064px; --graph-lanes-w: 1072px; --graph-w: 1330px; --graph-narrow-w: 1150px; }
1584 .commitgraph-slot.lanes-39 { --lanes: 39; --graph-svg-w: 1092px; --graph-lanes-w: 1100px; --graph-w: 1358px; --graph-narrow-w: 1178px; }
1585 .commitgraph-slot.lanes-40 { --lanes: 40; --graph-svg-w: 1120px; --graph-lanes-w: 1128px; --graph-w: 1386px; --graph-narrow-w: 1206px; }
1583 1586 .commitgraph-slot {
1584 1587 display: none;
1585 1588 position: sticky;
@@ -1645,6 +1648,7 @@ form.cancelform { display: inline; }
1645 1648 border: 1px solid currentColor; border-radius: 999px;
1646 1649 padding: 0 5px; background: var(--card);
1647 1650 }
1651 .commitgraph-ref-short { display: none; }
1648 1652 .commitgraph-ref.is-tag, .commitgraph-ref.tag { border-style: dashed; font-weight: 500; color: var(--muted); }
1649 1653 .commitgraph-ref.is-default { background: var(--blue-soft); }
1650 1654 .commitgraph-node.is-main, .commitgraph-ref.is-main, .commitgraph-svg .is-main { --c: var(--blue); color: var(--blue); }
@@ -1680,20 +1684,70 @@ form.cancelform { display: inline; }
1680 1684 filter: drop-shadow(0 0 2px var(--c, var(--blue)));
1681 1685 }
1682 1686 .commitgraph-ref.is-glow { box-shadow: 0 0 0 1px var(--c, var(--blue)); }
1683 /* Toon links alleen als de grafiek plus een bruikbare hoofdkolom
1684 (~720px, voor last-commit-balk en knoppen) past. Op 1280px met
1685 sidebar is de contentbak ~1040px: te krap voor 406+16+720, dus
1686 rechts of verborgen. Vanaf ~1400px (of ~1160 zonder sidebar)
1687 staat de grafiek links. */
1688 @container maincol (min-width: 1142px) {
1687 /* Smalle modus vanaf tablet: zelfde grafiek, zonder tekstkolom, zodat
1688 de hoofdkolom de ruimte terugkrijgt. Verborgen alleen op mobiel.
1689 Brede modus (tekstkolom) vanaf ~1400px met sidebar, of ~1160px
1690 zonder, of als de contentbak de volle breedte (406+16+720) draagt. */
1691 @media (min-width: 721px) {
1689 1692 .commitgraph-slot {
1690 1693 display: block;
1691 width: var(--graph-w);
1692 min-width: var(--graph-w);
1693 flex: 0 0 var(--graph-w);
1694 width: var(--graph-narrow-w);
1695 min-width: var(--graph-narrow-w);
1696 flex: 0 0 var(--graph-narrow-w);
1697 overflow: visible;
1698 }
1699 .commitgraph {
1700 width: var(--graph-narrow-w);
1701 min-width: var(--graph-narrow-w);
1702 max-width: var(--graph-narrow-w);
1703 margin-right: var(--graph-gap);
1704 overflow: visible;
1705 }
1706 .commitgraph-list,
1707 .commitgraph-row {
1708 width: var(--graph-narrow-w);
1709 min-width: var(--graph-narrow-w);
1710 max-width: var(--graph-narrow-w);
1711 }
1712 .commitgraph-row {
1713 grid-template-columns: var(--graph-ref-w) var(--graph-lanes-w);
1714 }
1715 .commitgraph-msg { display: none; }
1716 .commitgraph-ref-full { display: none; }
1717 .commitgraph-ref-short { display: inline; }
1718 .commitgraph-row[data-tip]::after {
1719 content: attr(data-tip);
1720 display: none;
1721 position: absolute;
1722 left: 100%;
1723 top: 50%;
1724 transform: translateY(-50%);
1725 margin-left: 8px;
1726 z-index: 20;
1727 box-sizing: border-box;
1728 min-width: 12rem;
1729 max-width: 22rem;
1730 padding: 0.35rem 0.55rem;
1731 border-radius: var(--radius);
1732 background: var(--ink);
1733 color: #fff;
1734 font-size: var(--fs-sm);
1735 font-weight: 400;
1736 line-height: 1.35;
1737 white-space: normal;
1738 box-shadow: var(--shadow);
1739 pointer-events: none;
1740 }
1741 .commitgraph-row[data-tip]:hover::after,
1742 .commitgraph-row[data-tip].is-tip::after,
1743 .commitgraph-row[data-tip]:focus-within::after {
1744 display: block;
1694 1745 }
1695 .commitgraph { margin-right: var(--graph-gap); }
1696 1746 }
1747 @media (max-width: 720px) {
1748 .commitgraph-slot:not(.is-right) { display: none !important; }
1749 }
1750
1697 1751 @media (min-width: 1400px) {
1698 1752 .frame.with-side .commitgraph-slot {
1699 1753 display: block;
@@ -1701,7 +1755,21 @@ form.cancelform { display: inline; }
1701 1755 min-width: var(--graph-w);
1702 1756 flex: 0 0 var(--graph-w);
1703 1757 }
1704 .frame.with-side .commitgraph { margin-right: var(--graph-gap); }
1758 .frame.with-side .commitgraph,
1759 .frame.with-side .commitgraph-list,
1760 .frame.with-side .commitgraph-row {
1761 width: var(--graph-w);
1762 min-width: var(--graph-w);
1763 max-width: var(--graph-w);
1764 }
1765 .frame.with-side .commitgraph { margin-right: var(--graph-gap); overflow-x: hidden; overflow-y: auto; }
1766 .frame.with-side .commitgraph-row {
1767 grid-template-columns: var(--graph-ref-w) var(--graph-lanes-w, calc(var(--lanes, 1) * var(--graph-lane) + 8px)) minmax(0, 1fr);
1768 }
1769 .frame.with-side .commitgraph-msg { display: block; }
1770 .frame.with-side .commitgraph-ref-full { display: inline; }
1771 .frame.with-side .commitgraph-ref-short { display: none; }
1772 .frame.with-side .commitgraph-row[data-tip]::after { display: none; }
1705 1773 }
1706 1774 @media (min-width: 1160px) {
1707 1775 .frame:not(.with-side) .commitgraph-slot {
@@ -1710,13 +1778,44 @@ form.cancelform { display: inline; }
1710 1778 min-width: var(--graph-w);
1711 1779 flex: 0 0 var(--graph-w);
1712 1780 }
1713 .frame:not(.with-side) .commitgraph { margin-right: var(--graph-gap); }
1714 }
1715 @media (max-width: 1159px) {
1716 .commitgraph-slot:not(.is-right) { display: none !important; }
1781 .frame:not(.with-side) .commitgraph,
1782 .frame:not(.with-side) .commitgraph-list,
1783 .frame:not(.with-side) .commitgraph-row {
1784 width: var(--graph-w);
1785 min-width: var(--graph-w);
1786 max-width: var(--graph-w);
1787 }
1788 .frame:not(.with-side) .commitgraph { margin-right: var(--graph-gap); overflow-x: hidden; overflow-y: auto; }
1789 .frame:not(.with-side) .commitgraph-row {
1790 grid-template-columns: var(--graph-ref-w) var(--graph-lanes-w, calc(var(--lanes, 1) * var(--graph-lane) + 8px)) minmax(0, 1fr);
1791 }
1792 .frame:not(.with-side) .commitgraph-msg { display: block; }
1793 .frame:not(.with-side) .commitgraph-ref-full { display: inline; }
1794 .frame:not(.with-side) .commitgraph-ref-short { display: none; }
1795 .frame:not(.with-side) .commitgraph-row[data-tip]::after { display: none; }
1717 1796 }
1718 @media (max-width: 1399px) {
1719 .frame.with-side .commitgraph-slot:not(.is-right) { display: none !important; }
1797 @container maincol (min-width: 1142px) {
1798 .commitgraph-slot {
1799 display: block;
1800 width: var(--graph-w);
1801 min-width: var(--graph-w);
1802 flex: 0 0 var(--graph-w);
1803 }
1804 .commitgraph,
1805 .commitgraph-list,
1806 .commitgraph-row {
1807 width: var(--graph-w);
1808 min-width: var(--graph-w);
1809 max-width: var(--graph-w);
1810 }
1811 .commitgraph { margin-right: var(--graph-gap); overflow-x: hidden; overflow-y: auto; }
1812 .commitgraph-row {
1813 grid-template-columns: var(--graph-ref-w) var(--graph-lanes-w, calc(var(--lanes, 1) * var(--graph-lane) + 8px)) minmax(0, 1fr);
1814 }
1815 .commitgraph-msg { display: block; }
1816 .commitgraph-ref-full { display: inline; }
1817 .commitgraph-ref-short { display: none; }
1818 .commitgraph-row[data-tip]::after { display: none; }
1720 1819 }
1721 1820 .commitgraph-slot.is-right {
1722 1821 display: block;
@@ -28,6 +28,7 @@
28 --content: 1180px;
28 --content: 1180px;
29 --top-h: 48px;
29 --top-h: 48px;
30 --graph-w: 400px;
30 --graph-w: 400px;
31 --graph-narrow-w: 226px;
31 --graph-gap: 16px;
32 --graph-gap: 16px;
32 --graph-ref-w: 78px;
33 --graph-ref-w: 78px;
33 --graph-row: 28px;
34 --graph-row: 28px;
@@ -1533,53 +1534,55 @@ form.cancelform { display: inline; }
1533
1534
1534/* Commitgrafiek links van de centrale kolom. Avatars zitten in de
1535/* Commitgrafiek links van de centrale kolom. Avatars zitten in de
1535 SVG op de lane-x. Breedtes komen uit .lanes-N in dit stylesheet,
1536 SVG op de lane-x. Breedtes komen uit .lanes-N in dit stylesheet,
1536 niet uit inline style-attributen (CSP style-src 'self'). De grafiek
1537 niet uit inline style-attributen (CSP style-src 'self'). Op brede
1537 krimpt niet; te lange tekst krijgt een ellipsis. Past hij links niet
1538 schermen staat de tekstkolom rechts van de lanes; op middelbrede
1538 zonder de hoofdkolom te knijpen, dan hangt hij rechts of blijft hij
1539 schermen (tot ~1400px met sidebar) een smalle modus zonder
1540 committekst, met tooltip bij hover. Alleen op mobiel blijft hij
1539 verborgen. */
1541 verborgen. */
1540/* Paneelmaten per lanettal. Geen inline styles: CSP style-src is
1542/* Paneelmaten per lanettal. Geen inline styles: CSP style-src is
1541 'self' zonder unsafe-inline, dus custom properties komen uit deze
1543 'self' zonder unsafe-inline, dus custom properties komen uit deze
1542 klassen (niet uit style="--graph-w: …"). */
1544 klassen (niet uit style="--graph-w: …"). --graph-w is de brede modus
1543.commitgraph-slot.lanes-1 { --lanes: 1; --graph-svg-w: 28px; --graph-lanes-w: 36px; --graph-w: 294px; }
1545 (inclusief tekstkolom); --graph-narrow-w is zonder tekstkolom. */
1544.commitgraph-slot.lanes-2 { --lanes: 2; --graph-svg-w: 56px; --graph-lanes-w: 64px; --graph-w: 322px; }
1546.commitgraph-slot.lanes-1 { --lanes: 1; --graph-svg-w: 28px; --graph-lanes-w: 36px; --graph-w: 294px; --graph-narrow-w: 114px; }
1545.commitgraph-slot.lanes-3 { --lanes: 3; --graph-svg-w: 84px; --graph-lanes-w: 92px; --graph-w: 350px; }
1547.commitgraph-slot.lanes-2 { --lanes: 2; --graph-svg-w: 56px; --graph-lanes-w: 64px; --graph-w: 322px; --graph-narrow-w: 142px; }
1546.commitgraph-slot.lanes-4 { --lanes: 4; --graph-svg-w: 112px; --graph-lanes-w: 120px; --graph-w: 378px; }
1548.commitgraph-slot.lanes-3 { --lanes: 3; --graph-svg-w: 84px; --graph-lanes-w: 92px; --graph-w: 350px; --graph-narrow-w: 170px; }
1547.commitgraph-slot.lanes-5 { --lanes: 5; --graph-svg-w: 140px; --graph-lanes-w: 148px; --graph-w: 406px; }
1549.commitgraph-slot.lanes-4 { --lanes: 4; --graph-svg-w: 112px; --graph-lanes-w: 120px; --graph-w: 378px; --graph-narrow-w: 198px; }
1548.commitgraph-slot.lanes-6 { --lanes: 6; --graph-svg-w: 168px; --graph-lanes-w: 176px; --graph-w: 434px; }
1550.commitgraph-slot.lanes-5 { --lanes: 5; --graph-svg-w: 140px; --graph-lanes-w: 148px; --graph-w: 406px; --graph-narrow-w: 226px; }
1549.commitgraph-slot.lanes-7 { --lanes: 7; --graph-svg-w: 196px; --graph-lanes-w: 204px; --graph-w: 462px; }
1551.commitgraph-slot.lanes-6 { --lanes: 6; --graph-svg-w: 168px; --graph-lanes-w: 176px; --graph-w: 434px; --graph-narrow-w: 254px; }
1550.commitgraph-slot.lanes-8 { --lanes: 8; --graph-svg-w: 224px; --graph-lanes-w: 232px; --graph-w: 490px; }
1552.commitgraph-slot.lanes-7 { --lanes: 7; --graph-svg-w: 196px; --graph-lanes-w: 204px; --graph-w: 462px; --graph-narrow-w: 282px; }
1551.commitgraph-slot.lanes-9 { --lanes: 9; --graph-svg-w: 252px; --graph-lanes-w: 260px; --graph-w: 518px; }
1553.commitgraph-slot.lanes-8 { --lanes: 8; --graph-svg-w: 224px; --graph-lanes-w: 232px; --graph-w: 490px; --graph-narrow-w: 310px; }
1552.commitgraph-slot.lanes-10 { --lanes: 10; --graph-svg-w: 280px; --graph-lanes-w: 288px; --graph-w: 546px; }
1554.commitgraph-slot.lanes-9 { --lanes: 9; --graph-svg-w: 252px; --graph-lanes-w: 260px; --graph-w: 518px; --graph-narrow-w: 338px; }
1553.commitgraph-slot.lanes-11 { --lanes: 11; --graph-svg-w: 308px; --graph-lanes-w: 316px; --graph-w: 574px; }
1555.commitgraph-slot.lanes-10 { --lanes: 10; --graph-svg-w: 280px; --graph-lanes-w: 288px; --graph-w: 546px; --graph-narrow-w: 366px; }
1554.commitgraph-slot.lanes-12 { --lanes: 12; --graph-svg-w: 336px; --graph-lanes-w: 344px; --graph-w: 602px; }
1556.commitgraph-slot.lanes-11 { --lanes: 11; --graph-svg-w: 308px; --graph-lanes-w: 316px; --graph-w: 574px; --graph-narrow-w: 394px; }
1555.commitgraph-slot.lanes-13 { --lanes: 13; --graph-svg-w: 364px; --graph-lanes-w: 372px; --graph-w: 630px; }
1557.commitgraph-slot.lanes-12 { --lanes: 12; --graph-svg-w: 336px; --graph-lanes-w: 344px; --graph-w: 602px; --graph-narrow-w: 422px; }
1556.commitgraph-slot.lanes-14 { --lanes: 14; --graph-svg-w: 392px; --graph-lanes-w: 400px; --graph-w: 658px; }
1558.commitgraph-slot.lanes-13 { --lanes: 13; --graph-svg-w: 364px; --graph-lanes-w: 372px; --graph-w: 630px; --graph-narrow-w: 450px; }
1557.commitgraph-slot.lanes-15 { --lanes: 15; --graph-svg-w: 420px; --graph-lanes-w: 428px; --graph-w: 686px; }
1559.commitgraph-slot.lanes-14 { --lanes: 14; --graph-svg-w: 392px; --graph-lanes-w: 400px; --graph-w: 658px; --graph-narrow-w: 478px; }
1558.commitgraph-slot.lanes-16 { --lanes: 16; --graph-svg-w: 448px; --graph-lanes-w: 456px; --graph-w: 714px; }
1560.commitgraph-slot.lanes-15 { --lanes: 15; --graph-svg-w: 420px; --graph-lanes-w: 428px; --graph-w: 686px; --graph-narrow-w: 506px; }
1559.commitgraph-slot.lanes-17 { --lanes: 17; --graph-svg-w: 476px; --graph-lanes-w: 484px; --graph-w: 742px; }
1561.commitgraph-slot.lanes-16 { --lanes: 16; --graph-svg-w: 448px; --graph-lanes-w: 456px; --graph-w: 714px; --graph-narrow-w: 534px; }
1560.commitgraph-slot.lanes-18 { --lanes: 18; --graph-svg-w: 504px; --graph-lanes-w: 512px; --graph-w: 770px; }
1562.commitgraph-slot.lanes-17 { --lanes: 17; --graph-svg-w: 476px; --graph-lanes-w: 484px; --graph-w: 742px; --graph-narrow-w: 562px; }
1561.commitgraph-slot.lanes-19 { --lanes: 19; --graph-svg-w: 532px; --graph-lanes-w: 540px; --graph-w: 798px; }
1563.commitgraph-slot.lanes-18 { --lanes: 18; --graph-svg-w: 504px; --graph-lanes-w: 512px; --graph-w: 770px; --graph-narrow-w: 590px; }
1562.commitgraph-slot.lanes-20 { --lanes: 20; --graph-svg-w: 560px; --graph-lanes-w: 568px; --graph-w: 826px; }
1564.commitgraph-slot.lanes-19 { --lanes: 19; --graph-svg-w: 532px; --graph-lanes-w: 540px; --graph-w: 798px; --graph-narrow-w: 618px; }
1563.commitgraph-slot.lanes-21 { --lanes: 21; --graph-svg-w: 588px; --graph-lanes-w: 596px; --graph-w: 854px; }
1565.commitgraph-slot.lanes-20 { --lanes: 20; --graph-svg-w: 560px; --graph-lanes-w: 568px; --graph-w: 826px; --graph-narrow-w: 646px; }
1564.commitgraph-slot.lanes-22 { --lanes: 22; --graph-svg-w: 616px; --graph-lanes-w: 624px; --graph-w: 882px; }
1566.commitgraph-slot.lanes-21 { --lanes: 21; --graph-svg-w: 588px; --graph-lanes-w: 596px; --graph-w: 854px; --graph-narrow-w: 674px; }
1565.commitgraph-slot.lanes-23 { --lanes: 23; --graph-svg-w: 644px; --graph-lanes-w: 652px; --graph-w: 910px; }
1567.commitgraph-slot.lanes-22 { --lanes: 22; --graph-svg-w: 616px; --graph-lanes-w: 624px; --graph-w: 882px; --graph-narrow-w: 702px; }
1566.commitgraph-slot.lanes-24 { --lanes: 24; --graph-svg-w: 672px; --graph-lanes-w: 680px; --graph-w: 938px; }
1568.commitgraph-slot.lanes-23 { --lanes: 23; --graph-svg-w: 644px; --graph-lanes-w: 652px; --graph-w: 910px; --graph-narrow-w: 730px; }
1567.commitgraph-slot.lanes-25 { --lanes: 25; --graph-svg-w: 700px; --graph-lanes-w: 708px; --graph-w: 966px; }
1569.commitgraph-slot.lanes-24 { --lanes: 24; --graph-svg-w: 672px; --graph-lanes-w: 680px; --graph-w: 938px; --graph-narrow-w: 758px; }
1568.commitgraph-slot.lanes-26 { --lanes: 26; --graph-svg-w: 728px; --graph-lanes-w: 736px; --graph-w: 994px; }
1570.commitgraph-slot.lanes-25 { --lanes: 25; --graph-svg-w: 700px; --graph-lanes-w: 708px; --graph-w: 966px; --graph-narrow-w: 786px; }
1569.commitgraph-slot.lanes-27 { --lanes: 27; --graph-svg-w: 756px; --graph-lanes-w: 764px; --graph-w: 1022px; }
1571.commitgraph-slot.lanes-26 { --lanes: 26; --graph-svg-w: 728px; --graph-lanes-w: 736px; --graph-w: 994px; --graph-narrow-w: 814px; }
1570.commitgraph-slot.lanes-28 { --lanes: 28; --graph-svg-w: 784px; --graph-lanes-w: 792px; --graph-w: 1050px; }
1572.commitgraph-slot.lanes-27 { --lanes: 27; --graph-svg-w: 756px; --graph-lanes-w: 764px; --graph-w: 1022px; --graph-narrow-w: 842px; }
1571.commitgraph-slot.lanes-29 { --lanes: 29; --graph-svg-w: 812px; --graph-lanes-w: 820px; --graph-w: 1078px; }
1573.commitgraph-slot.lanes-28 { --lanes: 28; --graph-svg-w: 784px; --graph-lanes-w: 792px; --graph-w: 1050px; --graph-narrow-w: 870px; }
1572.commitgraph-slot.lanes-30 { --lanes: 30; --graph-svg-w: 840px; --graph-lanes-w: 848px; --graph-w: 1106px; }
1574.commitgraph-slot.lanes-29 { --lanes: 29; --graph-svg-w: 812px; --graph-lanes-w: 820px; --graph-w: 1078px; --graph-narrow-w: 898px; }
1573.commitgraph-slot.lanes-31 { --lanes: 31; --graph-svg-w: 868px; --graph-lanes-w: 876px; --graph-w: 1134px; }
1575.commitgraph-slot.lanes-30 { --lanes: 30; --graph-svg-w: 840px; --graph-lanes-w: 848px; --graph-w: 1106px; --graph-narrow-w: 926px; }
1574.commitgraph-slot.lanes-32 { --lanes: 32; --graph-svg-w: 896px; --graph-lanes-w: 904px; --graph-w: 1162px; }
1576.commitgraph-slot.lanes-31 { --lanes: 31; --graph-svg-w: 868px; --graph-lanes-w: 876px; --graph-w: 1134px; --graph-narrow-w: 954px; }
1575.commitgraph-slot.lanes-33 { --lanes: 33; --graph-svg-w: 924px; --graph-lanes-w: 932px; --graph-w: 1190px; }
1577.commitgraph-slot.lanes-32 { --lanes: 32; --graph-svg-w: 896px; --graph-lanes-w: 904px; --graph-w: 1162px; --graph-narrow-w: 982px; }
1576.commitgraph-slot.lanes-34 { --lanes: 34; --graph-svg-w: 952px; --graph-lanes-w: 960px; --graph-w: 1218px; }
1578.commitgraph-slot.lanes-33 { --lanes: 33; --graph-svg-w: 924px; --graph-lanes-w: 932px; --graph-w: 1190px; --graph-narrow-w: 1010px; }
1577.commitgraph-slot.lanes-35 { --lanes: 35; --graph-svg-w: 980px; --graph-lanes-w: 988px; --graph-w: 1246px; }
1579.commitgraph-slot.lanes-34 { --lanes: 34; --graph-svg-w: 952px; --graph-lanes-w: 960px; --graph-w: 1218px; --graph-narrow-w: 1038px; }
1578.commitgraph-slot.lanes-36 { --lanes: 36; --graph-svg-w: 1008px; --graph-lanes-w: 1016px; --graph-w: 1274px; }
1580.commitgraph-slot.lanes-35 { --lanes: 35; --graph-svg-w: 980px; --graph-lanes-w: 988px; --graph-w: 1246px; --graph-narrow-w: 1066px; }
1579.commitgraph-slot.lanes-37 { --lanes: 37; --graph-svg-w: 1036px; --graph-lanes-w: 1044px; --graph-w: 1302px; }
1581.commitgraph-slot.lanes-36 { --lanes: 36; --graph-svg-w: 1008px; --graph-lanes-w: 1016px; --graph-w: 1274px; --graph-narrow-w: 1094px; }
1580.commitgraph-slot.lanes-38 { --lanes: 38; --graph-svg-w: 1064px; --graph-lanes-w: 1072px; --graph-w: 1330px; }
1582.commitgraph-slot.lanes-37 { --lanes: 37; --graph-svg-w: 1036px; --graph-lanes-w: 1044px; --graph-w: 1302px; --graph-narrow-w: 1122px; }
1581.commitgraph-slot.lanes-39 { --lanes: 39; --graph-svg-w: 1092px; --graph-lanes-w: 1100px; --graph-w: 1358px; }
1583.commitgraph-slot.lanes-38 { --lanes: 38; --graph-svg-w: 1064px; --graph-lanes-w: 1072px; --graph-w: 1330px; --graph-narrow-w: 1150px; }
1582.commitgraph-slot.lanes-40 { --lanes: 40; --graph-svg-w: 1120px; --graph-lanes-w: 1128px; --graph-w: 1386px; }
1584.commitgraph-slot.lanes-39 { --lanes: 39; --graph-svg-w: 1092px; --graph-lanes-w: 1100px; --graph-w: 1358px; --graph-narrow-w: 1178px; }
1585.commitgraph-slot.lanes-40 { --lanes: 40; --graph-svg-w: 1120px; --graph-lanes-w: 1128px; --graph-w: 1386px; --graph-narrow-w: 1206px; }
1583.commitgraph-slot {
1586.commitgraph-slot {
1584 display: none;
1587 display: none;
1585 position: sticky;
1588 position: sticky;
@@ -1645,6 +1648,7 @@ form.cancelform { display: inline; }
1645 border: 1px solid currentColor; border-radius: 999px;
1648 border: 1px solid currentColor; border-radius: 999px;
1646 padding: 0 5px; background: var(--card);
1649 padding: 0 5px; background: var(--card);
1647}
1650}
1651.commitgraph-ref-short { display: none; }
1648.commitgraph-ref.is-tag, .commitgraph-ref.tag { border-style: dashed; font-weight: 500; color: var(--muted); }
1652.commitgraph-ref.is-tag, .commitgraph-ref.tag { border-style: dashed; font-weight: 500; color: var(--muted); }
1649.commitgraph-ref.is-default { background: var(--blue-soft); }
1653.commitgraph-ref.is-default { background: var(--blue-soft); }
1650.commitgraph-node.is-main, .commitgraph-ref.is-main, .commitgraph-svg .is-main { --c: var(--blue); color: var(--blue); }
1654.commitgraph-node.is-main, .commitgraph-ref.is-main, .commitgraph-svg .is-main { --c: var(--blue); color: var(--blue); }
@@ -1680,20 +1684,70 @@ form.cancelform { display: inline; }
1680 filter: drop-shadow(0 0 2px var(--c, var(--blue)));
1684 filter: drop-shadow(0 0 2px var(--c, var(--blue)));
1681}
1685}
1682.commitgraph-ref.is-glow { box-shadow: 0 0 0 1px var(--c, var(--blue)); }
1686.commitgraph-ref.is-glow { box-shadow: 0 0 0 1px var(--c, var(--blue)); }
1683/* Toon links alleen als de grafiek plus een bruikbare hoofdkolom
1687/* Smalle modus vanaf tablet: zelfde grafiek, zonder tekstkolom, zodat
1684 (~720px, voor last-commit-balk en knoppen) past. Op 1280px met
1688 de hoofdkolom de ruimte terugkrijgt. Verborgen alleen op mobiel.
1685 sidebar is de contentbak ~1040px: te krap voor 406+16+720, dus
1689 Brede modus (tekstkolom) vanaf ~1400px met sidebar, of ~1160px
1686 rechts of verborgen. Vanaf ~1400px (of ~1160 zonder sidebar)
1690 zonder, of als de contentbak de volle breedte (406+16+720) draagt. */
1687 staat de grafiek links. */
1691@media (min-width: 721px) {
1688@container maincol (min-width: 1142px) {
1689 .commitgraph-slot {
1692 .commitgraph-slot {
1690 display: block;
1693 display: block;
1691 width: var(--graph-w);
1694 width: var(--graph-narrow-w);
1692 min-width: var(--graph-w);
1695 min-width: var(--graph-narrow-w);
1693 flex: 0 0 var(--graph-w);
1696 flex: 0 0 var(--graph-narrow-w);
1697 overflow: visible;
1698 }
1699 .commitgraph {
1700 width: var(--graph-narrow-w);
1701 min-width: var(--graph-narrow-w);
1702 max-width: var(--graph-narrow-w);
1703 margin-right: var(--graph-gap);
1704 overflow: visible;
1705 }
1706 .commitgraph-list,
1707 .commitgraph-row {
1708 width: var(--graph-narrow-w);
1709 min-width: var(--graph-narrow-w);
1710 max-width: var(--graph-narrow-w);
1711 }
1712 .commitgraph-row {
1713 grid-template-columns: var(--graph-ref-w) var(--graph-lanes-w);
1714 }
1715 .commitgraph-msg { display: none; }
1716 .commitgraph-ref-full { display: none; }
1717 .commitgraph-ref-short { display: inline; }
1718 .commitgraph-row[data-tip]::after {
1719 content: attr(data-tip);
1720 display: none;
1721 position: absolute;
1722 left: 100%;
1723 top: 50%;
1724 transform: translateY(-50%);
1725 margin-left: 8px;
1726 z-index: 20;
1727 box-sizing: border-box;
1728 min-width: 12rem;
1729 max-width: 22rem;
1730 padding: 0.35rem 0.55rem;
1731 border-radius: var(--radius);
1732 background: var(--ink);
1733 color: #fff;
1734 font-size: var(--fs-sm);
1735 font-weight: 400;
1736 line-height: 1.35;
1737 white-space: normal;
1738 box-shadow: var(--shadow);
1739 pointer-events: none;
1740 }
1741 .commitgraph-row[data-tip]:hover::after,
1742 .commitgraph-row[data-tip].is-tip::after,
1743 .commitgraph-row[data-tip]:focus-within::after {
1744 display: block;
1694 }
1745 }
1695 .commitgraph { margin-right: var(--graph-gap); }
1696}
1746}
1747@media (max-width: 720px) {
1748 .commitgraph-slot:not(.is-right) { display: none !important; }
1749}
1750
1697@media (min-width: 1400px) {
1751@media (min-width: 1400px) {
1698 .frame.with-side .commitgraph-slot {
1752 .frame.with-side .commitgraph-slot {
1699 display: block;
1753 display: block;
@@ -1701,7 +1755,21 @@ form.cancelform { display: inline; }
1701 min-width: var(--graph-w);
1755 min-width: var(--graph-w);
1702 flex: 0 0 var(--graph-w);
1756 flex: 0 0 var(--graph-w);
1703 }
1757 }
1704 .frame.with-side .commitgraph { margin-right: var(--graph-gap); }
1758 .frame.with-side .commitgraph,
1759 .frame.with-side .commitgraph-list,
1760 .frame.with-side .commitgraph-row {
1761 width: var(--graph-w);
1762 min-width: var(--graph-w);
1763 max-width: var(--graph-w);
1764 }
1765 .frame.with-side .commitgraph { margin-right: var(--graph-gap); overflow-x: hidden; overflow-y: auto; }
1766 .frame.with-side .commitgraph-row {
1767 grid-template-columns: var(--graph-ref-w) var(--graph-lanes-w, calc(var(--lanes, 1) * var(--graph-lane) + 8px)) minmax(0, 1fr);
1768 }
1769 .frame.with-side .commitgraph-msg { display: block; }
1770 .frame.with-side .commitgraph-ref-full { display: inline; }
1771 .frame.with-side .commitgraph-ref-short { display: none; }
1772 .frame.with-side .commitgraph-row[data-tip]::after { display: none; }
1705}
1773}
1706@media (min-width: 1160px) {
1774@media (min-width: 1160px) {
1707 .frame:not(.with-side) .commitgraph-slot {
1775 .frame:not(.with-side) .commitgraph-slot {
@@ -1710,13 +1778,44 @@ form.cancelform { display: inline; }
1710 min-width: var(--graph-w);
1778 min-width: var(--graph-w);
1711 flex: 0 0 var(--graph-w);
1779 flex: 0 0 var(--graph-w);
1712 }
1780 }
1713 .frame:not(.with-side) .commitgraph { margin-right: var(--graph-gap); }
1781 .frame:not(.with-side) .commitgraph,
1714}
1782 .frame:not(.with-side) .commitgraph-list,
1715@media (max-width: 1159px) {
1783 .frame:not(.with-side) .commitgraph-row {
1716 .commitgraph-slot:not(.is-right) { display: none !important; }
1784 width: var(--graph-w);
1785 min-width: var(--graph-w);
1786 max-width: var(--graph-w);
1787 }
1788 .frame:not(.with-side) .commitgraph { margin-right: var(--graph-gap); overflow-x: hidden; overflow-y: auto; }
1789 .frame:not(.with-side) .commitgraph-row {
1790 grid-template-columns: var(--graph-ref-w) var(--graph-lanes-w, calc(var(--lanes, 1) * var(--graph-lane) + 8px)) minmax(0, 1fr);
1791 }
1792 .frame:not(.with-side) .commitgraph-msg { display: block; }
1793 .frame:not(.with-side) .commitgraph-ref-full { display: inline; }
1794 .frame:not(.with-side) .commitgraph-ref-short { display: none; }
1795 .frame:not(.with-side) .commitgraph-row[data-tip]::after { display: none; }
1717}
1796}
1718@media (max-width: 1399px) {
1797@container maincol (min-width: 1142px) {
1719 .frame.with-side .commitgraph-slot:not(.is-right) { display: none !important; }
1798 .commitgraph-slot {
1799 display: block;
1800 width: var(--graph-w);
1801 min-width: var(--graph-w);
1802 flex: 0 0 var(--graph-w);
1803 }
1804 .commitgraph,
1805 .commitgraph-list,
1806 .commitgraph-row {
1807 width: var(--graph-w);
1808 min-width: var(--graph-w);
1809 max-width: var(--graph-w);
1810 }
1811 .commitgraph { margin-right: var(--graph-gap); overflow-x: hidden; overflow-y: auto; }
1812 .commitgraph-row {
1813 grid-template-columns: var(--graph-ref-w) var(--graph-lanes-w, calc(var(--lanes, 1) * var(--graph-lane) + 8px)) minmax(0, 1fr);
1814 }
1815 .commitgraph-msg { display: block; }
1816 .commitgraph-ref-full { display: inline; }
1817 .commitgraph-ref-short { display: none; }
1818 .commitgraph-row[data-tip]::after { display: none; }
1720}
1819}
1721.commitgraph-slot.is-right {
1820.commitgraph-slot.is-right {
1722 display: block;
1821 display: block;
internal/server/templates/commitgraph.html +2 −2
@@ -4,8 +4,8 @@
4 4 {{.Graph.SVG}}
5 5 <ol class="commitgraph-list">
6 6 {{range .Graph.Rows}}
7 <li class="commitgraph-row"{{if .Branch}} data-branch="{{.Branch}}"{{end}}>
8 <span class="commitgraph-refs">{{range .Labels}}<span class="commitgraph-ref {{.Kind}}{{if .Default}} is-default{{end}} {{.Class}}"{{if .Ref}} data-branch="{{.Ref}}" title="{{.Ref}}"{{else}} title="{{.Name}}"{{end}}>{{.Name}}</span>{{end}}</span>
7 <li class="commitgraph-row"{{if .Tip}} data-tip="{{.Tip}}"{{end}}{{if .Branch}} data-branch="{{.Branch}}"{{end}}>
8 <span class="commitgraph-refs">{{range .Labels}}<span class="commitgraph-ref {{.Kind}}{{if .Default}} is-default{{end}} {{.Class}}"{{if .Ref}} data-branch="{{.Ref}}" title="{{.Ref}}"{{else}} title="{{.Name}}"{{end}}><span class="commitgraph-ref-full">{{.Name}}</span><span class="commitgraph-ref-short">{{if .Short}}{{.Short}}{{else}}{{.Name}}{{end}}</span></span>{{end}}</span>
9 9 <span class="commitgraph-lanes" aria-hidden="true"></span>
10 10 <a class="commitgraph-msg" href="/{{$.Repo.FullPath}}/-/commit/{{.SHA}}" title="{{.Subject}}">{{.Subject}}</a>
11 11 </li>
@@ -4,8 +4,8 @@
4 {{.Graph.SVG}}
4 {{.Graph.SVG}}
5 <ol class="commitgraph-list">
5 <ol class="commitgraph-list">
6 {{range .Graph.Rows}}
6 {{range .Graph.Rows}}
7 <li class="commitgraph-row"{{if .Branch}} data-branch="{{.Branch}}"{{end}}>
7 <li class="commitgraph-row"{{if .Tip}} data-tip="{{.Tip}}"{{end}}{{if .Branch}} data-branch="{{.Branch}}"{{end}}>
8 <span class="commitgraph-refs">{{range .Labels}}<span class="commitgraph-ref {{.Kind}}{{if .Default}} is-default{{end}} {{.Class}}"{{if .Ref}} data-branch="{{.Ref}}" title="{{.Ref}}"{{else}} title="{{.Name}}"{{end}}>{{.Name}}</span>{{end}}</span>
8 <span class="commitgraph-refs">{{range .Labels}}<span class="commitgraph-ref {{.Kind}}{{if .Default}} is-default{{end}} {{.Class}}"{{if .Ref}} data-branch="{{.Ref}}" title="{{.Ref}}"{{else}} title="{{.Name}}"{{end}}><span class="commitgraph-ref-full">{{.Name}}</span><span class="commitgraph-ref-short">{{if .Short}}{{.Short}}{{else}}{{.Name}}{{end}}</span></span>{{end}}</span>
9 <span class="commitgraph-lanes" aria-hidden="true"></span>
9 <span class="commitgraph-lanes" aria-hidden="true"></span>
10 <a class="commitgraph-msg" href="/{{$.Repo.FullPath}}/-/commit/{{.SHA}}" title="{{.Subject}}">{{.Subject}}</a>
10 <a class="commitgraph-msg" href="/{{$.Repo.FullPath}}/-/commit/{{.SHA}}" title="{{.Subject}}">{{.Subject}}</a>
11 </li>
11 </li>