Precise widths for code-line and code-side-line

The widths of these are now calculated based on:
100% minus the horizontal padding
This commit is contained in:
Siddhant 2023-02-28 19:17:07 -06:00 committed by GitHub
parent 09cbe87595
commit 32239a0b9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -124,7 +124,7 @@
display: inline-block; display: inline-block;
white-space: nowrap; white-space: nowrap;
user-select: none; user-select: none;
width: 100%; width: calc(100% - 16em);
/* Compensate for the absolute positioning of the line numbers */ /* Compensate for the absolute positioning of the line numbers */
padding: 0 8em; padding: 0 8em;
} }
@ -133,7 +133,7 @@
display: inline-block; display: inline-block;
white-space: nowrap; white-space: nowrap;
user-select: none; user-select: none;
width: auto; width: calc(100% - 9em);
/* Compensate for the absolute positioning of the line numbers */ /* Compensate for the absolute positioning of the line numbers */
padding: 0 4.5em; padding: 0 4.5em;
} }