Skip to content

A platform for community discussion. Free, open, simple.

UX: Don't make collapsed GH PR onebox body scrollable on mobile (#40083)

Jarek Radoszd2371f4d6b53
diff --git a/app/assets/stylesheets/common/base/onebox.scss b/app/assets/stylesheets/common/base/onebox.scss
index f8ca444163b..9bd1a0a0a29 100644
--- a/app/assets/stylesheets/common/base/onebox.scss
+++ b/app/assets/stylesheets/common/base/onebox.scss
@@ -592,6 +592,10 @@ pre.onebox code ol.lines li.selected {
line-height: calc((13 + 4) / 13);
box-sizing: border-box;
+ @include viewport.until(sm) {
+ max-height: 50vh;
+ }
+
.show-more {
font-family: var(--font-family);