aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/less
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/less')
-rw-r--r--web_src/less/_repository.less17
1 files changed, 15 insertions, 2 deletions
diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less
index ccc2dcf69c..ffec4043b5 100644
--- a/web_src/less/_repository.less
+++ b/web_src/less/_repository.less
@@ -1,6 +1,19 @@
.repository {
- .commit-statuses .list > .item {
- line-height: 2;
+ .popup.commit-statuses {
+ // we had better limit the max size of the popup, and add scroll bars if the content size is too large.
+ // otherwise some part of the popup will be hidden by viewport boundary
+ max-height: 45vh;
+ max-width: 60vw;
+ overflow: auto;
+ padding: 0;
+
+ .list {
+ padding: .8em; // to make the scrollbar align to the border, we move the padding from outer `.popup` to this inside `.list`
+
+ > .item {
+ line-height: 2;
+ }
+ }
}
.repo-header {