Prevent invalid behavior for file reviewing when loading more files (#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.

Lastly, the `go-licenses.json` was automatically updated.

Fixes #21228.
Fixes #20681.

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
delvh 2022-09-21 19:02:56 +02:00 committed by GitHub
parent 0a9a86b943
commit acee32ca09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 29 additions and 15 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 {