Skip to content

Commit

Permalink
Ensure commit-statuses box is sized correctly in headers (go-gitea#18538
Browse files Browse the repository at this point in the history
)

Backport go-gitea#18538
Backport go-gitea#18605

* 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 go-gitea#18498

Signed-off-by: Andrew Thornton <[email protected]>
Co-authored-by: wxiaoguang <[email protected]>
  • Loading branch information
zeripath and wxiaoguang committed Feb 4, 2022
1 parent 18c1edf commit 13a1d63
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions web_src/less/_repository.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
// otherwise some part of the popup will be hidden by viewport boundary
max-height: 45vh;
max-width: 60vw;

& .ui.right {
// 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;
}

overflow: auto;
padding: 0;

Expand Down

0 comments on commit 13a1d63

Please sign in to comment.