diff --git a/web_src/css/repo.css b/web_src/css/repo.css
index 3bc1a1e6e1..3ee76b5af3 100644
--- a/web_src/css/repo.css
+++ b/web_src/css/repo.css
@@ -2256,7 +2256,6 @@ details.repo-search-result summary::marker {
   background: var(--color-box-header);
   border-bottom: 1px solid var(--color-secondary) !important;
   font-weight: var(--font-weight-normal) !important;
-  padding: 0.5rem 1rem;
   margin: 0 !important;
   position: relative;
   color: var(--color-text);
@@ -2267,6 +2266,10 @@ details.repo-search-result summary::marker {
   align-items: center;
 }
 
+.timeline .ui.comment-header {
+  padding: 0.5rem 1rem;
+}
+
 .comment-header::before,
 .comment-header::after {
   right: 100%;