From 4d74e18b05f070eb2804da2952403bbbfce40b15 Mon Sep 17 00:00:00 2001 From: Andrew Thornton Date: Tue, 1 Feb 2022 22:18:58 +0000 Subject: [PATCH 1/2] Ensure commit-statuses box is sized correctly in headers When viewing commits as commits the commit-status box will be fixed at 30px in height due to being forced to be this size by a fomantic selector. This PR simply adds a few more selectors to force this to have height auto. Fix #18498 Signed-off-by: Andrew Thornton --- web_src/less/_repository.less | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less index 76ca5dff7da44..d740429eace0b 100644 --- a/web_src/less/_repository.less +++ b/web_src/less/_repository.less @@ -4,6 +4,12 @@ // otherwise some part of the popup will be hidden by viewport boundary max-height: 45vh; max-width: 60vw; + + & .ui.right { + // Override the .ui.attached.header .right:not(.dropdown) height: 30px; + height: auto; + } + overflow: auto; padding: 0; From 375c44a51be7ee107d50d6415da865801d6063b8 Mon Sep 17 00:00:00 2001 From: zeripath Date: Wed, 2 Feb 2022 09:06:14 +0000 Subject: [PATCH 2/2] Update web_src/less/_repository.less Co-authored-by: wxiaoguang --- web_src/less/_repository.less | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less index d740429eace0b..6cce0ec66f22d 100644 --- a/web_src/less/_repository.less +++ b/web_src/less/_repository.less @@ -6,7 +6,8 @@ max-width: 60vw; & .ui.right { - // Override the .ui.attached.header .right:not(.dropdown) height: 30px; + // Override `.ui.attached.header .right:not(.dropdown) height: 30px;` which would otherwise lead to + // the status popup box having its height fixed at 30px. See https://github.com/go-gitea/gitea/issues/18498 height: auto; }