fix: URL rewritings for publishing / preview

This commit is contained in:
2026-02-16 21:55:03 +01:00
parent 54a8ba5ceb
commit e98379fe95
8 changed files with 469 additions and 25 deletions

View File

@@ -203,6 +203,13 @@
justify-content: center;
}
.insert-modal-footer-content {
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
}
.insert-modal-hint {
font-size: 11px;
color: var(--color-text-muted, #888);
@@ -210,6 +217,12 @@
letter-spacing: 0.5px;
}
.insert-modal-format-hint {
font-size: 11px;
color: var(--color-text-muted, #888);
font-family: 'Cascadia Code', 'Consolas', 'Courier New', monospace;
}
/* Scrollbar styling */
.insert-modal-results::-webkit-scrollbar {
width: 8px;

View File

@@ -324,11 +324,20 @@ export const InsertModal: React.FC<InsertModalProps> = ({
)}
<div className="insert-modal-footer">
<span className="insert-modal-hint">
{activeTab === 'internal'
? 'Use ↑↓ to navigate, Enter to select, Esc to close'
: 'Enter URL and press Enter or click button, Esc to close'}
</span>
<div className="insert-modal-footer-content">
<span className="insert-modal-hint">
{activeTab === 'internal'
? 'Use ↑↓ to navigate, Enter to select, Esc to close'
: 'Enter URL and press Enter or click button, Esc to close'}
</span>
{activeTab === 'internal' && (
<span className="insert-modal-format-hint">
{mode === 'link'
? 'Canonical: /YYYY/MM/DD/slug'
: 'Canonical: /media/YYYY/MM/file.ext'}
</span>
)}
</div>
</div>
</div>
</div>