Skip to content

Soul-driven AI agent with permission-hardened tools, token budgets, and multi-channel access. Runs 24/7 from CLI, Telegram or More.

website: blog cover banner no longer fills the screen

Salman Qureshi49867ff2322e
diff --git a/website/src/components/Journal/journal.css b/website/src/components/Journal/journal.css
index 5bd56b93..9d7be1ca 100644
--- a/website/src/components/Journal/journal.css
+++ b/website/src/components/Journal/journal.css
@@ -138,10 +138,12 @@
.mj-post-author strong { display: block; font-size: 0.95rem; color: var(--mj-ink); font-weight: 600; }
.mj-post-author em { display: block; font-style: normal; font-size: 0.82rem; color: var(--mj-dim); }
.mj-post-banner {
- max-width: 1140px; margin: 0 auto 56px; height: auto;
+ /* Whole cover, never cropped (some covers carry text), but capped so it
+ doesn't fill the screen: 16:9 at most ~405px tall. */
+ width: min(100%, 720px); aspect-ratio: 16 / 9; margin: 0 auto 56px;
border-radius: 22px; overflow: hidden; border: 1px solid var(--mj-line); background: var(--mj-surface);
}
-.mj-post-banner img { display: block; width: 100%; height: auto; object-fit: contain; }
+.mj-post-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* reading progress */
.mj-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: calc(var(--ifm-z-index-fixed) + 10); pointer-events: none; }