mirror of
https://github.com/go-gitea/gitea.git
synced 2025-12-12 21:30:08 +01:00
Improve markup code preview rendering
This commit is contained in:
parent
8aa1179ce4
commit
86bad44824
@ -1,7 +1,7 @@
|
|||||||
<div class="code-preview-container file-content">
|
<div class="code-preview-container file-content">
|
||||||
<div class="code-preview-header">
|
<div class="code-preview-header">
|
||||||
<a href="{{.FullURL}}" class="muted" rel="nofollow">{{.FilePath}}</a>
|
<a href="{{.FullURL}}" rel="nofollow" class="tw-font-semibold">{{.FilePath}}</a>
|
||||||
{{$link := HTMLFormat `<a href="%s/src/commit/%s" rel="nofollow">%s</a>` .RepoLink .CommitID (.CommitID | ShortSha) -}}
|
{{$link := HTMLFormat `<a href="%s/src/commit/%s" class="muted tw-font-mono tw-text-text">%s</a>` .RepoLink .CommitID (.CommitID | ShortSha) -}}
|
||||||
{{- if eq .LineStart .LineStop -}}
|
{{- if eq .LineStart .LineStop -}}
|
||||||
{{ctx.Locale.Tr "repo.code_preview_line_in" .LineStart $link}}
|
{{ctx.Locale.Tr "repo.code_preview_line_in" .LineStart $link}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
|
|||||||
@ -5,6 +5,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.markup .code-preview-container .code-preview-header {
|
.markup .code-preview-container .code-preview-header {
|
||||||
|
color: var(--color-text-light-1);
|
||||||
border-bottom: 1px solid var(--color-secondary);
|
border-bottom: 1px solid var(--color-secondary);
|
||||||
padding: 0.5em;
|
padding: 0.5em;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user