From eb82e8762a212a1c4708008171d22438b8849da8 Mon Sep 17 00:00:00 2001 From: Gigi Date: Mon, 13 Oct 2025 16:09:42 +0200 Subject: [PATCH] style: tighten vertical spacing on highlight cards - Reduce header/footer vertical padding (0.5rem -> 0.375rem) - Reduce content top/bottom padding (3rem -> 2.25rem) - Slightly reduce gaps to compact layout --- src/styles/layout/highlights.css | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/styles/layout/highlights.css b/src/styles/layout/highlights.css index 54c82ef3..0b5c6339 100644 --- a/src/styles/layout/highlights.css +++ b/src/styles/layout/highlights.css @@ -115,7 +115,7 @@ .compact-button:disabled { opacity: 0.5; cursor: not-allowed; } .compact-button:disabled:hover { background: none; color: #888; transform: none; } -.highlight-header { position: absolute; top: 0; left: 0; right: 0; padding: 0.5rem 1rem; display: flex; align-items: center; justify-content: flex-end; pointer-events: none; border-top: 1px solid #333; border-top-left-radius: 8px; border-top-right-radius: 8px; transition: border-color 0.2s ease; } +.highlight-header { position: absolute; top: 0; left: 0; right: 0; padding: 0.375rem 1rem; display: flex; align-items: center; justify-content: flex-end; pointer-events: none; border-top: 1px solid #333; border-top-left-radius: 8px; border-top-right-radius: 8px; transition: border-color 0.2s ease; } .highlight-header .compact-button { pointer-events: auto; } .highlight-timestamp { font-size: 0.75rem; font-weight: 500; white-space: nowrap; } @@ -148,12 +148,12 @@ .highlight-item.level-friends .highlight-quote-icon { color: var(--highlight-color-friends, #f97316); } .highlight-item.level-nostrverse .highlight-quote-icon { color: var(--highlight-color-nostrverse, #9333ea); } -.highlight-content { flex: 1; display: flex; flex-direction: column; gap: 0.75rem; padding: 3rem 1rem; } +.highlight-content { flex: 1; display: flex; flex-direction: column; gap: 0.625rem; padding: 2.25rem 1rem; } .highlight-text { margin: 0; padding: 0; font-style: italic; color: #ddd; line-height: 1.6; border-left: none; font-size: 0.95rem; } .highlight-comment { margin-top: 0.5rem; padding: 0.75rem; background: rgba(100, 108, 255, 0.1); border-left: 3px solid #646cff; border-radius: 4px; font-size: 0.875rem; color: #ddd; line-height: 1.5; } -.highlight-footer { position: absolute; bottom: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 1rem; font-size: 0.8rem; color: #888; border-bottom: 1px solid #333; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; transition: border-color 0.2s ease; } -.highlight-footer-left { display: flex; align-items: center; gap: 0.5rem; min-width: 0; } +.highlight-footer { position: absolute; bottom: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 0.375rem 1rem; font-size: 0.8rem; color: #888; border-bottom: 1px solid #333; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; transition: border-color 0.2s ease; } +.highlight-footer-left { display: flex; align-items: center; gap: 0.4rem; min-width: 0; } .highlight-author { color: #aaa; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; display: inline-flex; align-items: center; min-height: 28px; } /* Ensure relay indicator in footer uses normal flow and matches CompactButton spacing */