navid/veinsforge / commit

ff205097a3f9

Navid M <navidmomtahen@gmail.com> · 2026-11-28

parents: ff3477091cc9

Browse files at this commit · Download source

all: styling fixes
--- a/internal/web/repo_browse.go+++ b/internal/web/repo_browse.go@@ -162,7 +162,7 @@ 			if licenseFile := firstLicense(files); licenseFile != "" { 				if f, err := s.vn.ReadFile(r.Context(), repo.ID, central, rev, licenseFile, 1<<20); err == nil { 					if name := licenseName(f.Data); name != "" {-						dataMap["License"] = name+						dataMap["License"] = strings.ToLower(name) 					} 				} 			}--- a/internal/web/static/app.css+++ b/internal/web/static/app.css@@ -586,20 +586,7 @@ .repo-actions {   font-family: var(--font-mono);   font-size: 0.8rem;-}-.license {-  display: flex;-  align-items: center;-  gap: 0.3rem;-  margin-top: -0.55rem;-  line-height: 1.2;-}-.license-icon {-  width: 0.92em;-  height: 0.92em;-  flex: none; }- .language-bar {   display: flex;   gap: 2px;--- a/internal/web/templates/repo.html+++ b/internal/web/templates/repo.html@@ -3,23 +3,11 @@ <h1><a href="{{ownerURL .Data.Repo}}">{{.Data.Repo.OwnerName}}</a> / {{.Data.Repo.Name}}</h1> {{if .Data.Repo.Description}}<p>{{.Data.Repo.Description}}</p>{{end}} <p class="muted">-  {{.Data.Repo.Visibility}}{{if .Data.Repo.Archived}} · archived{{end}} · {{.Data.StarCount}} stars+  {{.Data.Repo.Visibility}}{{if .Data.Repo.Archived}} · archived{{end}} · {{.Data.StarCount}} stars{{if .Data.License}} · {{.Data.License}}{{end}}   {{if .Data.Rev}} · default branch <code>{{.Data.Rev}}</code>{{end}}   {{if .Data.LatestTag}} · latest tag <code>{{.Data.LatestTag}}</code>{{end}}   {{if .Data.Perms.CanAdmin}} · <a href="{{repoURL .Data.Repo}}/settings">settings</a>{{end}}-</p>-{{if .Data.License}}-<p class="muted license">-  <svg class="license-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">-    <path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path>-    <polyline points="14 2 14 8 20 8"></polyline>-    <line x1="16" y1="13" x2="8" y2="13"></line>-    <line x1="16" y1="17" x2="8" y2="17"></line>-    <polyline points="10 9 9 9 8 9"></polyline>-  </svg>-  <span>{{.Data.License}}</span> </p>-{{end}} {{with .Data.Languages}} <div class="language-bar" role="img" aria-label="Language breakdown">   <svg viewBox="0 0 100 10" preserveAspectRatio="none" aria-hidden="true" focusable="false">