1
0
Fork 0
forked from forgejo/forgejo

Prevent invalid behavior for file reviewing when loading more files (#21230) (#21234)

Backport of #21230

The problem was that many PR review components loaded by `Show more`
received the same ID as previous batches, which confuses browsers (when
clicked). All such occurrences should now be fixed.

Additionally improved the background of the `viewed` checkbox.

Fixes #21228.
Fixes #20681.

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
delvh 2022-09-23 02:45:51 +02:00 committed by GitHub
parent 20c135cd46
commit e50473e6bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 13 deletions

View file

@ -272,13 +272,22 @@ a.blob-excerpt:hover {
}
.viewed-file-form {
margin: 0 3px;
padding: 0 3px;
border-radius: 3px;
display: flex;
align-items: center;
border: 1px none;
padding: 4px 8px;
margin: -8px 0; // just like other buttons in the diff box header
border-radius: .285rem; // just like .ui.tiny.button
font-size: .857rem; // just like .ui.tiny.button
}
.viewed-file-form input {
margin-right: 4px;
}
.viewed-file-checked-form {
background-color: var(--color-primary-light-4);
background-color: var(--color-primary-light-6);
border: 1px solid var(--color-primary-light-4);
}
#viewed-files-summary {