Skip to content

Commit b4ea7b5

Browse files
committed
tweaks
1 parent 9b47221 commit b4ea7b5

File tree

2 files changed

+17
-24
lines changed

2 files changed

+17
-24
lines changed

templates/repo/home_sidebar_top.tmpl

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,15 @@
1212
{{ctx.Locale.Tr "repo.repo_desc"}}
1313
</div>
1414
{{if and (not .HideRepoInfo) (not .IsBlame)}}
15-
<div class="flex-item-body repo-description tw-break-anywhere tw-gap-2 tw-mt-2">
15+
<div class="flex-item-body repo-description tw-break-anywhere tw-gap-2 tw-my-2">
1616
{{- $description := .Repository.DescriptionHTML ctx -}}
1717
{{if $description}}{{$description | RenderCodeBlock}}{{else}}{{ctx.Locale.Tr "repo.repo_no_desc"}}{{end}}
18-
{{if .Repository.Website}}{{svg "octicon-link"}}<a href="{{.Repository.Website}}">{{.Repository.Website}}</a>{{end}}
1918
</div>
19+
{{if .Repository.Website}}
20+
<a class="flex-text-block muted" href="{{.Repository.Website}}">
21+
{{svg "octicon-link"}} <span class="tw-text-primary">{{.Repository.Website}}</span>
22+
</a>
23+
{{end}}
2024
<div class="tw-flex tw-items-center tw-flex-wrap tw-gap-2 tw-my-2" id="repo-topics">
2125
{{/* !!!! it SHOULD and MUST match the code in issue-home.js */}}
2226
{{range .Topics}}<a class="repo-topic ui large label gt-ellipsis" title={{.Name}} href="{{AppSubUrl}}/explore/repos?q={{.Name}}&topic=1">{{.Name}}</a>{{end}}
@@ -41,28 +45,22 @@
4145
</div>
4246
</div>
4347
{{end}}
44-
<div class="tw-flex tw-flex-col tw-gap-1 tw-mt-2">
48+
<div class="flex-item-body tw-flex tw-flex-col tw-gap-1 tw-mt-2 tw-items-start">
4549
{{if .ReadmeExist}}
46-
<div class="flex-item-body">
47-
<a class="flex-text-block muted" href="{{.TreeLink}}/{{.FileName}}">
48-
{{svg "octicon-book"}} {{ctx.Locale.Tr "readme"}}
49-
</a>
50-
</div>
50+
<a class="flex-text-block muted" href="{{.TreeLink}}/{{.FileName}}">
51+
{{svg "octicon-book"}} {{ctx.Locale.Tr "readme"}}
52+
</a>
5153
{{end}}
5254
{{if .DetectedRepoLicenses}}
53-
<div class="flex-item-body">
54-
<a class="flex-text-block muted" href="{{.RepoLink}}/src/{{.Repository.DefaultBranch}}/{{PathEscapeSegments .LicenseFileName}}" title="{{StringUtils.Join .DetectedRepoLicenses ", "}}">
55-
{{svg "octicon-law"}} {{if eq (len .DetectedRepoLicenses) 1}}{{index .DetectedRepoLicenses 0}}{{else}}{{ctx.Locale.Tr "repo.multiple_licenses"}}{{end}}
56-
</a>
57-
</div>
55+
<a class="flex-text-block muted" href="{{.RepoLink}}/src/{{.Repository.DefaultBranch}}/{{PathEscapeSegments .LicenseFileName}}" title="{{StringUtils.Join .DetectedRepoLicenses ", "}}">
56+
{{svg "octicon-law"}} {{if eq (len .DetectedRepoLicenses) 1}}{{index .DetectedRepoLicenses 0}}{{else}}{{ctx.Locale.Tr "repo.multiple_licenses"}}{{end}}
57+
</a>
5858
{{end}}
5959
{{if .CitiationExist}}
60-
<div class="flex-item-body">
61-
{{template "repo/cite/cite_modal" .}}
62-
<a class="flex-text-block muted" id="cite-repo-button">
63-
{{svg "octicon-cross-reference"}} {{ctx.Locale.Tr "repo.cite_this_repo"}}
64-
</a>
65-
</div>
60+
{{template "repo/cite/cite_modal" .}}
61+
<a class="flex-text-block muted" id="cite-repo-button">
62+
{{svg "octicon-cross-reference"}} {{ctx.Locale.Tr "repo.cite_this_repo"}}
63+
</a>
6664
{{end}}
6765
</div>
6866
</div>

web_src/css/repo.css

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,6 @@
101101
margin-bottom: 12px;
102102
}
103103

104-
.repository .repo-description {
105-
font-size: 16px;
106-
margin-bottom: 5px;
107-
}
108-
109104
.commit-summary {
110105
flex: 1;
111106
overflow-wrap: anywhere;

0 commit comments

Comments
 (0)