diff --git a/polygerrit-ui/app/elements/gr-diff-side.html b/polygerrit-ui/app/elements/gr-diff-side.html
index 9b43b4b197..60e9d093d8 100644
--- a/polygerrit-ui/app/elements/gr-diff-side.html
+++ b/polygerrit-ui/app/elements/gr-diff-side.html
@@ -23,6 +23,7 @@ limitations under the License.
:host,
.container {
display: flex;
+ flex: 0 0 auto;
}
.lineNum:before,
.code:before {
@@ -45,9 +46,6 @@ limitations under the License.
.canComment .lineNum:hover {
background-color: #ccc;
}
- .code {
- white-space: pre;
- }
.lightHighlight {
background-color: var(--light-highlight-color);
}
@@ -67,6 +65,10 @@ limitations under the License.
/* >> character */
content: '\00BB';
}
+ .numbers,
+ .content {
+ white-space: pre;
+ }
.numbers .filler {
background-color: #eee;
}
diff --git a/polygerrit-ui/app/elements/gr-diff-view.html b/polygerrit-ui/app/elements/gr-diff-view.html
index 1e656ac3c6..c0080377aa 100644
--- a/polygerrit-ui/app/elements/gr-diff-view.html
+++ b/polygerrit-ui/app/elements/gr-diff-view.html
@@ -42,6 +42,9 @@ limitations under the License.
.jumpToFileContainer {
display: inline-block;
}
+ .mobileJumpToFileContainer {
+ display: none;
+ }
.downArrow {
display: inline-block;
font-size: .6em;
@@ -88,6 +91,21 @@ limitations under the License.
padding: .3em 0;
text-decoration: none;
}
+ @media screen and (max-width: 60em) {
+ .dash {
+ display: none;
+ }
+ .reviewed {
+ vertical-align: -.1em;
+ }
+ .jumpToFileContainer {
+ display: none;
+ }
+ .mobileJumpToFileContainer {
+ display: block;
+ width: 100%;
+ }
+ }