diff --git a/src/ui/css/diff2html.css b/src/ui/css/diff2html.css
index 59a5996..0e751eb 100644
--- a/src/ui/css/diff2html.css
+++ b/src/ui/css/diff2html.css
@@ -133,7 +133,7 @@
display: inline-block;
white-space: nowrap;
user-select: none;
- width: 100%;
+ width: auto;
/* Compensate for the absolute positioning of the line numbers */
padding: 0 4.5em;
}