File tree 4 files changed +9
-5
lines changed 4 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 3
3
<tr class="{{.GetHTMLDiffLineType}}-code nl-{{$k}} ol-{{$k}} line-expanded">
4
4
{{if eq .GetType 4}}
5
5
<td class="lines-num lines-num-old" data-line-num="{{if $line.LeftIdx}}{{$line.LeftIdx}}{{end}}">
6
- <div class="tw-flex ">
6
+ <div class="code-expander-buttons ">
7
7
{{if or (eq $line.GetExpandDirection 3) (eq $line.GetExpandDirection 5)}}
8
8
<button class="code-expander-button" hx-target="closest tr" hx-get="{{$.RepoLink}}/blob_excerpt/{{PathEscape $.AfterCommitID}}?{{$line.GetBlobExcerptQuery}}&style=split&direction=down&wiki={{$.PageIsWiki}}&anchor={{$.Anchor}}">
9
9
{{svg "octicon-fold-down"}}
49
49
<tr class="{{.GetHTMLDiffLineType}}-code nl-{{$k}} ol-{{$k}} line-expanded">
50
50
{{if eq .GetType 4}}
51
51
<td colspan="2" class="lines-num">
52
- <div class="tw-flex ">
52
+ <div class="code-expander-buttons ">
53
53
{{if or (eq $line.GetExpandDirection 3) (eq $line.GetExpandDirection 5)}}
54
54
<button class="code-expander-button" hx-target="closest tr" hx-get="{{$.RepoLink}}/blob_excerpt/{{PathEscape $.AfterCommitID}}?data-query={{$line.GetBlobExcerptQuery}}&style=unified&direction=down&wiki={{$.PageIsWiki}}&anchor={{$.Anchor}}">
55
55
{{svg "octicon-fold-down"}}
Original file line number Diff line number Diff line change 17
17
<tr class="{{.GetHTMLDiffLineType}}-code nl-{{$k}} ol-{{$k}}" data-line-type="{{.GetHTMLDiffLineType}}">
18
18
{{if eq .GetType 4}}
19
19
<td class="lines-num lines-num-old">
20
- <div class="tw-flex ">
20
+ <div class="code-expander-buttons ">
21
21
{{if or (eq $line.GetExpandDirection 3) (eq $line.GetExpandDirection 5)}}
22
22
<button class="code-expander-button" hx-target="closest tr" hx-get="{{$blobExcerptRepoLink}}/blob_excerpt/{{PathEscape $.root.AfterCommitID}}?{{$line.GetBlobExcerptQuery}}&style=split&direction=down&wiki={{$.root.PageIsWiki}}&anchor=diff-{{$file.NameHash}}K{{$line.SectionInfo.RightIdx}}">
23
23
{{svg "octicon-fold-down"}}
Original file line number Diff line number Diff line change 13
13
{{if eq .GetType 4}}
14
14
{{if $.root.AfterCommitID}}
15
15
<td colspan="2" class="lines-num">
16
- <div class="tw-flex ">
16
+ <div class="code-expander-buttons ">
17
17
{{if or (eq $line.GetExpandDirection 3) (eq $line.GetExpandDirection 5)}}
18
18
<button class="code-expander-button" hx-target="closest tr" hx-get="{{$blobExcerptRepoLink}}/blob_excerpt/{{PathEscape $.root.AfterCommitID}}?{{$line.GetBlobExcerptQuery}}&style=unified&direction=down&wiki={{$.root.PageIsWiki}}&anchor=diff-{{$file.NameHash}}K{{$line.SectionInfo.RightIdx}}">
19
19
{{svg "octicon-fold-down"}}
Original file line number Diff line number Diff line change 202
202
.code-expander-button {
203
203
border : none;
204
204
color : var (--color-text-light );
205
- height : 28 px ;
205
+ height : 18 px ;
206
206
display : flex;
207
207
justify-content : center;
208
208
align-items : center;
211
211
flex : 1 ;
212
212
}
213
213
214
+ .code-expander-button : only-child {
215
+ height : 28px ;
216
+ }
217
+
214
218
.code-expander-button : hover {
215
219
background : var (--color-primary );
216
220
color : var (--color-primary-contrast );
You can’t perform that action at this time.
0 commit comments