forked from forgejo/forgejo
Fix review UI (#27322)
Close #26730 1. The `diff-detail-box` was abused, it shouldn't be used for "DiffFileList/DiffFileTree". 2. Fix the sticky position for various screens.   
This commit is contained in:
parent
72c68177ab
commit
1f00bc44b2
4 changed files with 12 additions and 17 deletions
|
@ -1502,14 +1502,21 @@
|
|||
}
|
||||
|
||||
.repository .diff-detail-box {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 8;
|
||||
padding: 7px 0;
|
||||
height: 44px; /* this height should match sticky-2nd-row */
|
||||
background: var(--color-body);
|
||||
}
|
||||
|
||||
@media (max-width: 991.98px) {
|
||||
.repository .diff-detail-box {
|
||||
flex-direction: row;
|
||||
align-items: flex-start;
|
||||
height: 77px; /* this height should match sticky-2nd-row */
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1518,18 +1525,6 @@
|
|||
flex-wrap: wrap;
|
||||
}
|
||||
}
|
||||
|
||||
.repository .diff-detail-box.sticky {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 8;
|
||||
border-bottom: none;
|
||||
padding-left: 5px;
|
||||
padding-right: 5px;
|
||||
margin-left: -4px;
|
||||
margin-right: -4px;
|
||||
}
|
||||
|
||||
.repository .diff-detail-box .diff-detail-stats strong {
|
||||
margin-left: 0.25rem;
|
||||
margin-right: 0.25rem;
|
||||
|
@ -2830,7 +2825,7 @@ tbody.commit-list {
|
|||
|
||||
.ui.attached.header.diff-file-header.sticky-2nd-row {
|
||||
position: sticky;
|
||||
top: 47px; /* match .repository .diff-detail-box */
|
||||
top: 44px; /* match .repository .diff-detail-box */
|
||||
z-index: 7;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue