From c1c11aaf6043fca35f499e8db8bf384626958806 Mon Sep 17 00:00:00 2001 From: Giteabot Date: Tue, 11 Jun 2024 13:30:02 +0800 Subject: [PATCH] Fix line number width in code preview (#31307) (#31316) Backport #31307 by silverwind Line numbers were using some hacky CSS `width: 1%` that did nothing to the code rendering as far as I can tell but broken the inline preview in markup when line numbers are greater than 2 digits. Also I removed one duplicate `font-family` rule (it is set below in the `.lines-num, .lines-code` selector. Co-authored-by: silverwind --- web_src/css/base.css | 2 -- 1 file changed, 2 deletions(-) diff --git a/web_src/css/base.css b/web_src/css/base.css index 69e9cc41a2..56425fb1a1 100644 --- a/web_src/css/base.css +++ b/web_src/css/base.css @@ -1005,8 +1005,6 @@ overflow-menu .ui.label { padding: 0 8px; text-align: right !important; color: var(--color-text-light-2); - width: 1%; - font-family: var(--fonts-monospace); } .lines-num span.bottom-line::after {