Skip to content

Commit 1b950b9

Browse files
wxiaoguangdelvhjolheisertechknowlogick
authored
Use gt-relative class instead of the ambiguous gt-pr class (#23008)
`.gt-relative` is also `position: relative !important;` There are `gt-pr-?` styles below (line 140) for `padding-right`, which makes `.gt-pr` ambiguous Co-authored-by: delvh <[email protected]> Co-authored-by: John Olheiser <[email protected]> Co-authored-by: techknowlogick <[email protected]>
1 parent 35d2fa7 commit 1b950b9

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

templates/repo/commit_page.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
{{$class = (printf "%s%s" $class " isWarning")}}
1818
{{end}}
1919
{{end}}
20-
<div class="ui top attached header clearing segment gt-pr commit-header {{$class}}">
20+
<div class="ui top attached header clearing segment gt-relative commit-header {{$class}}">
2121
<div class="gt-df gt-mb-4 gt-fw">
2222
<h3 class="gt-mb-0 gt-f1"><span class="commit-summary" title="{{.Commit.Summary}}">{{RenderCommitMessage $.Context .Commit.Message $.RepoLink $.Repository.ComposeMetas}}</span>{{template "repo/commit_statuses" dict "Status" .CommitStatus "Statuses" .CommitStatuses "root" $}}</h3>
2323
{{if not $.PageIsWiki}}

web_src/less/helpers.less

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
.gt-di { display: inline !important; }
33
.gt-dif { display: inline-flex !important; }
44
.gt-dib { display: inline-block !important; }
5-
.gt-pr { position: relative !important; }
65
.gt-ac { align-items: center !important; }
76
.gt-tc { text-align: center !important; }
87
.gt-tl { text-align: left !important; }

0 commit comments

Comments
 (0)