Tweak repo desc (WIP)

WIP because I'd like it to be visible even if repo is empty

Signed-off-by: Minecon724 <minecon724@noreply.git.m724.eu>
This commit is contained in:
Minecon724 2025-03-17 20:46:17 +01:00
parent f6465295a9
commit 9a5cd6bac3
Signed by: Minecon724
GPG key ID: A02E6E67AB961189
2 changed files with 7 additions and 1 deletions

View file

@ -9,7 +9,9 @@
<div id="repo-desc" class="tw-break-anywhere tw-text-16"> <div id="repo-desc" class="tw-break-anywhere tw-text-16">
{{$description := .Repository.DescriptionHTML $.Context}} {{$description := .Repository.DescriptionHTML $.Context}}
{{if $description}}<span class="description">{{$description | RenderCodeBlock}}</span>{{else}}<span class="no-description text-italic">{{ctx.Locale.Tr "repo.no_desc"}}</span>{{end}} {{if $description}}<span class="description">{{$description | RenderCodeBlock}}</span>{{else}}<span class="no-description text-italic">{{ctx.Locale.Tr "repo.no_desc"}}</span>{{end}}
{{if .Repository.Website}}<a class="link" href="{{.Repository.Website}}">{{.Repository.Website}}</a>{{end}} {{if .Repository.Website}}
<a class="link tw-mt-1 tw-flex tw-items-center tw-gap-1" href="{{.Repository.Website}}">{{svg "octicon-globe"}} {{.Repository.Website}}</a>
{{end}}
</div> </div>
</div> </div>
<div class="tw-flex tw-items-center tw-flex-wrap tw-gap-2 tw-my-2" id="repo-topics"> <div class="tw-flex tw-items-center tw-flex-wrap tw-gap-2 tw-my-2" id="repo-topics">

View file

@ -3016,3 +3016,7 @@ tbody.commit-list {
#repo-activity-top-authors-chart { #repo-activity-top-authors-chart {
height: 150px; /* Pre-allocate the height that will be taken up by the chart, to avoid the container 'jumping'. */ height: 150px; /* Pre-allocate the height that will be taken up by the chart, to avoid the container 'jumping'. */
} }
.no-description {
color: var(--color-text-light-3);
}