summaryrefslogtreecommitdiffstats
path: root/web_src
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-12-09 01:12:15 +0100
committerGitHub <noreply@github.com>2020-12-09 01:12:15 +0100
commitc05701dd7d72aea75c67fbb07df928c192474686 (patch)
tree807d295c28ad57950120e0b14596168902efde0d /web_src
parent658e90a1141a03e5249770a6a670b818fe307e1d (diff)
downloadgitea-c05701dd7d72aea75c67fbb07df928c192474686.tar.gz
gitea-c05701dd7d72aea75c67fbb07df928c192474686.zip
Fix frontpage avatars (#13853)
The frontpage uses a rather strange method to obtain the commit's avatar which I've overlooked earlier. I don't exactly understand how it works but this change fixes the wrong default avatars by using the function that was in previous use. Also introduced a few constants for size an size increase factor. Fixes: https://github.com/go-gitea/gitea/issues/13844
Diffstat (limited to 'web_src')
-rw-r--r--web_src/less/_base.less21
-rw-r--r--web_src/less/helpers.less2
2 files changed, 12 insertions, 11 deletions
diff --git a/web_src/less/_base.less b/web_src/less/_base.less
index 81c6a310f5..0e555daf9f 100644
--- a/web_src/less/_base.less
+++ b/web_src/less/_base.less
@@ -312,6 +312,12 @@ a.muted:hover,
font-weight: normal;
}
+/* fix misaligned images in webhook dropdown */
+.ui.dropdown .menu > .item > img {
+ margin-top: -.25rem;
+ margin-bottom: -.25rem;
+}
+
.ui.selection.dropdown .menu > .item {
border-color: var(--color-secondary);
}
@@ -1101,16 +1107,6 @@ footer {
text-align: center;
}
-.generate-img(16);
-.generate-img(@n, @i: 1) when (@i =< @n) {
- .img-@{i} {
- width: (2px * @i) !important;
- height: (2px * @i) !important;
- }
-
- .generate-img(@n, (@i + 1));
-}
-
// Conditional display
@media @mediaMdAndUp {
.mobile-only,
@@ -1660,6 +1656,11 @@ a.ui.basic.label:hover {
visibility: hidden;
}
+/* prevent stacking context issue on webhook dropdown */
+.ui.segment {
+ position: static;
+}
+
.ui.segment,
.ui.segments,
.ui.attached.segment {
diff --git a/web_src/less/helpers.less b/web_src/less/helpers.less
index 7e299339f8..c611076f48 100644
--- a/web_src/less/helpers.less
+++ b/web_src/less/helpers.less
@@ -22,7 +22,7 @@
}
.full-screen-width { width: 100vw !important; }
-.full-screen-height { height: 100vw !important; }
+.full-screen-height { height: 100vh !important; }
.rounded { border-radius: var(--border-radius) !important; }
.rounded-top { border-radius: var(--border-radius) var(--border-radius) 0 0 !important; }