Add comprehensive Obsidian image rendering with multi-strategy resolution, attachment indexing, and API endpoints for image serving with MIME type detection and rescan functionality

This commit is contained in:
2026-03-23 10:00:48 -04:00
parent 29bdc52cef
commit 175ac3dea8
8 changed files with 1309 additions and 17 deletions
+32
View File
@@ -1191,6 +1191,38 @@ select {
cursor: default;
}
/* Image placeholders */
.image-not-found {
display: inline-block;
padding: 8px 12px;
background: var(--danger-bg);
color: var(--danger);
border: 1px dashed var(--danger);
border-radius: 4px;
font-family: 'JetBrains Mono', monospace;
font-size: 0.85rem;
cursor: help;
}
/* Markdown images */
.file-content img {
max-width: 100%;
height: auto;
display: block;
margin: 16px 0;
border-radius: 6px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.file-content a img {
cursor: pointer;
transition: opacity 0.2s ease;
}
.file-content a img:hover {
opacity: 0.85;
}
/* --- Search Results --- */
.search-results {
padding: 0;