From dea058cda4d3f03db641584ae6ebfe43122d5625 Mon Sep 17 00:00:00 2001 From: silverwind Date: Mon, 4 Aug 2025 13:34:30 +0200 Subject: [PATCH 1/4] Fix font-size in inline comment preview --- web_src/css/repo.css | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/web_src/css/repo.css b/web_src/css/repo.css index 14db7d07e6bb1..18c16fb65d62a 100644 --- a/web_src/css/repo.css +++ b/web_src/css/repo.css @@ -300,7 +300,10 @@ td .commit-summary { min-width: 100px; } -.repository.new.issue .comment.form .content .markup { +.repository.new.issue .comment.form .content .markup, +.repository.compare.pull .markup, +.repository.view.issue .comment-list .comment .markup, +.conversation-holder .markup { font-size: 14px; } @@ -630,10 +633,6 @@ td .commit-summary { background: var(--color-light); } -.repository.view.issue .comment-list .comment .markup { - font-size: 14px; -} - .repository.view.issue .comment-list .comment .no-content { color: var(--color-text-light-2); font-style: italic; @@ -723,10 +722,6 @@ td .commit-summary { text-align: center; } -.repository.compare.pull .markup { - font-size: 14px; -} - .repository.branches .commit-divergence .bar-group { position: relative; float: left; From 9f732d9ac603cf7adf93b2297f99885a0d9d2fd4 Mon Sep 17 00:00:00 2001 From: silverwind Date: Mon, 4 Aug 2025 13:56:04 +0200 Subject: [PATCH 2/4] use default 14px and override it for file-view --- web_src/css/markup/content.css | 3 ++- web_src/css/repo.css | 7 ------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/web_src/css/markup/content.css b/web_src/css/markup/content.css index c6a89edf25e58..330db9bf9345c 100644 --- a/web_src/css/markup/content.css +++ b/web_src/css/markup/content.css @@ -1,6 +1,6 @@ .markup { overflow: hidden; - font-size: 16px; + font-size: 14px; line-height: 1.5 !important; overflow-wrap: break-word; } @@ -318,6 +318,7 @@ In markup content, we always use bottom margin for all elements */ .file-view.markup { padding: 1em 2em; + font-size: 16px; } .file-view.markup:has(.file-not-rendered-prompt) { diff --git a/web_src/css/repo.css b/web_src/css/repo.css index 18c16fb65d62a..386fc7139afef 100644 --- a/web_src/css/repo.css +++ b/web_src/css/repo.css @@ -300,13 +300,6 @@ td .commit-summary { min-width: 100px; } -.repository.new.issue .comment.form .content .markup, -.repository.compare.pull .markup, -.repository.view.issue .comment-list .comment .markup, -.conversation-holder .markup { - font-size: 14px; -} - .repository.view.issue .instruct-toggle { display: inline-block; } From 07849ab47053ade126239ab00c4536952c0b8167 Mon Sep 17 00:00:00 2001 From: silverwind Date: Mon, 4 Aug 2025 14:56:32 +0200 Subject: [PATCH 3/4] Update web_src/css/markup/content.css Signed-off-by: silverwind --- web_src/css/markup/content.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_src/css/markup/content.css b/web_src/css/markup/content.css index 330db9bf9345c..4738e5c3dde34 100644 --- a/web_src/css/markup/content.css +++ b/web_src/css/markup/content.css @@ -1,6 +1,6 @@ .markup { overflow: hidden; - font-size: 14px; + font-size: 14px; /* 14px for comments, overridden to 16px for file-view below. */ line-height: 1.5 !important; overflow-wrap: break-word; } From 13726a6d4891ba005bb4983cd67f737e98c694b8 Mon Sep 17 00:00:00 2001 From: silverwind Date: Mon, 4 Aug 2025 14:57:16 +0200 Subject: [PATCH 4/4] Update web_src/css/markup/content.css Signed-off-by: silverwind --- web_src/css/markup/content.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_src/css/markup/content.css b/web_src/css/markup/content.css index 4738e5c3dde34..14d95ca72671e 100644 --- a/web_src/css/markup/content.css +++ b/web_src/css/markup/content.css @@ -1,6 +1,6 @@ .markup { overflow: hidden; - font-size: 14px; /* 14px for comments, overridden to 16px for file-view below. */ + font-size: 14px; /* 14px for comments, overridden to 16px for .file-view below. */ line-height: 1.5 !important; overflow-wrap: break-word; }