summaryrefslogtreecommitdiffstats
path: root/web_src
diff options
context:
space:
mode:
authordelvh <leon@kske.dev>2022-09-21 19:02:56 +0200
committerGitHub <noreply@github.com>2022-09-22 01:02:56 +0800
commitacee32ca09ea8573687759ec039a8d480da97127 (patch)
treedbb8a46b4ac0dee8b3d2c39c6239f28d9a0f3bc5 /web_src
parent0a9a86b94307fe95661060cdfe36026e296dc69e (diff)
downloadgitea-acee32ca09ea8573687759ec039a8d480da97127.tar.gz
gitea-acee32ca09ea8573687759ec039a8d480da97127.zip
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>
Diffstat (limited to 'web_src')
-rw-r--r--web_src/less/_review.less17
1 files changed, 13 insertions, 4 deletions
diff --git a/web_src/less/_review.less b/web_src/less/_review.less
index e3b88ed928..fd18ecb3d3 100644
--- a/web_src/less/_review.less
+++ b/web_src/less/_review.less
@@ -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 {