Skip to content

Commit 390ec61

Browse files
authored
Fix review bar misalignment (#26711)
1 parent 8ac8304 commit 390ec61

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

templates/repo/diff/box.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
</div>
2121
{{end}}
2222
</div>
23-
<div class="diff-detail-actions gt-df gt-ac gt-gap-2 gt-fw">
23+
<div class="diff-detail-actions">
2424
{{if and .PageIsPullFiles $.SignedUserID (not .IsArchived) (not .DiffNotAvailable)}}
2525
<div class="gt-df gt-ac gt-fc gt-whitespace-nowrap gt-mr-2">
2626
<label for="viewed-files-summary" id="viewed-files-summary-label" data-text-changed-template="{{.locale.Tr "repo.pulls.viewed_files_label"}}">

web_src/css/repo.css

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1625,10 +1625,11 @@
16251625
}
16261626

16271627
.diff-detail-actions {
1628-
/* prevent font-size from increasing element height so that .diff-detail-box comes
1629-
out with height of 47px (one line) and 77px (two lines), which is important for
1630-
position: sticky */
1631-
height: 33px;
1628+
display: flex;
1629+
align-items: center;
1630+
gap: 0.25em;
1631+
flex-wrap: wrap;
1632+
justify-content: end;
16321633
}
16331634

16341635
.diff-detail-actions > *,
@@ -1642,12 +1643,7 @@
16421643
padding-top: 0.25rem;
16431644
}
16441645
.repository .diff-detail-box .diff-detail-actions .ui.button:not(.btn-submit) {
1645-
padding-left: 0.5rem;
1646-
padding-right: 0.5rem;
1647-
display: flex;
1648-
flex-wrap: wrap;
1649-
justify-content: center;
1650-
text-align: center;
1646+
padding: 0 0.5rem;
16511647
}
16521648
}
16531649

0 commit comments

Comments
 (0)