Fix file line padding in side-by-side viewer
Setting "padding: 0" on td was overriding the padding of the
actual CSS class we tried to apply, because its selector was higher
priority. Instead only set padding-top,-bottom as that is what we
need to control the per-row gaps.
Change-Id: I8c5d83d4b4c08dc7197edee9614390ae50424544
Signed-off-by: Shawn O. Pearce <sop@google.com>
diff --git a/gerrit-gwtui/src/main/java/com/google/gerrit/client/gerrit.css b/gerrit-gwtui/src/main/java/com/google/gerrit/client/gerrit.css
index 5ee4a61..4f482dc 100644
--- a/gerrit-gwtui/src/main/java/com/google/gerrit/client/gerrit.css
+++ b/gerrit-gwtui/src/main/java/com/google/gerrit/client/gerrit.css
@@ -517,7 +517,8 @@
border-spacing: 0;
}
.patchContentTable td {
- padding: 0;
+ padding-top: 0;
+ padding-bottom: 0;
font-size: 8pt;
font-family: mono-font;
}
@@ -594,9 +595,9 @@
}
.fileLine {
- padding-left: 0.2em;
+ padding-left: 0;
+ padding-right: 0;
white-space: pre;
- padding-right: 0.2em;
}
.fileLineNone {
background: #eeeeee;