fix(frontend): 修复 Shiki 主题选择器并添加真实预览

This commit is contained in:
2026-08-30 22:31:21 +08:00
parent 206a8f5b0a
commit 9bcb3bf3a6
4 changed files with 51 additions and 31 deletions
@@ -288,6 +288,6 @@ defineExpose({ getEditor: () => crepe?.editor })
.milkdown-host :deep(.milkdown-list-item-block li .label-wrapper) { color: var(--color-markdown-marker); font-weight: 700; }
.milkdown-host :deep(.milkdown-list-item-block li .label-wrapper svg) { fill: var(--color-markdown-marker); }
.milkdown-host :deep(code) { font-family: var(--font-editor-mono); }
:global([data-theme='dark']) .milkdown-host :deep(.milkdown) { color-scheme: dark; }
:global([data-theme='dark'] .milkdown-host .milkdown) { color-scheme: dark; }
@media (max-width: 680px) { .toolbar-select select { min-width: 46px; width: 46px; } }
</style>