From 32239a0b9d033a38cfc8f1c1b3c65043c76046fa Mon Sep 17 00:00:00 2001 From: Siddhant <115331356+grimsteel@users.noreply.github.com> Date: Tue, 28 Feb 2023 19:17:07 -0600 Subject: [PATCH] Precise widths for `code-line` and `code-side-line` The widths of these are now calculated based on: 100% minus the horizontal padding --- src/ui/css/diff2html.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/css/diff2html.css b/src/ui/css/diff2html.css index ae6f4b7..e88a20f 100644 --- a/src/ui/css/diff2html.css +++ b/src/ui/css/diff2html.css @@ -124,7 +124,7 @@ display: inline-block; white-space: nowrap; user-select: none; - width: 100%; + width: calc(100% - 16em); /* Compensate for the absolute positioning of the line numbers */ padding: 0 8em; } @@ -133,7 +133,7 @@ display: inline-block; white-space: nowrap; user-select: none; - width: auto; + width: calc(100% - 9em); /* Compensate for the absolute positioning of the line numbers */ padding: 0 4.5em; }