Huh, odd! I use the Minimal theme primarily, but it works in every theme I’ve tried (including the default one). I also tried the Sandbox vault and it works there. Maybe I changed something else that I’m forgetting. Here’s the full file that I’m using:
:root {
--banner-image-height: 120px;
}
.banner-image > .markdown-preview-section {
margin-top: var(--banner-image-height) !important;
}
.banner-image.markdown-preview-view [data-callout="banner-image"],
.banner-image.markdown-preview-view .image-embed {
position: absolute;
top: 0;
left: 0;
right: 0;
height: var(--banner-image-height) !important;
margin: 0px !important;
padding: 0px;
background-color: transparent;
.callout-icon {
display: none;
}
}
.banner-image.markdown-preview-view [data-callout="banner-image"] img {
min-height: var(--banner-image-height) !important;
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
}
.banner-image [data-callout="banner-image"] .callout-icon {
display: none;
}