Filter outline markers in writer, add min-height to preview dialog

This commit is contained in:
Yuzhiran Dev
2026-05-20 18:11:32 +08:00
parent bf38125362
commit 9a328323c0
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -8,7 +8,7 @@
<link rel="stylesheet" href="theme-modern.css"> <link rel="stylesheet" href="theme-modern.css">
<style> <style>
.selected-count { color: var(--color-text-secondary); font-size: var(--font-size-body); margin-left: auto; } .selected-count { color: var(--color-text-secondary); font-size: var(--font-size-body); margin-left: auto; }
.preview-dialog-custom .el-dialog__body { overflow-y: auto; max-height: calc(90vh - 120px); padding: 16px 20px; } .preview-dialog-custom .el-dialog__body { overflow-y: auto; max-height: calc(90vh - 120px); min-height: 400px; padding: 16px 20px; }
.preview-dialog-custom .preview-body { max-height: calc(90vh - 180px); min-height: 300px; overflow: auto; } .preview-dialog-custom .preview-body { max-height: calc(90vh - 180px); min-height: 300px; overflow: auto; }
.preview-dialog-custom .preview-body img { max-width: 100%; } .preview-dialog-custom .preview-body img { max-width: 100%; }
.topic-card-list { display: none; } .topic-card-list { display: none; }
+2
View File
@@ -143,6 +143,8 @@ class Writer:
return True return True
if stripped.startswith('*大纲'): if stripped.startswith('*大纲'):
return True return True
if re.match(r'^\*{0,3}【[^】]*】\*{0,3}\s*$', stripped):
return True
return False return False
def _is_bullet_only(self, text: str) -> bool: def _is_bullet_only(self, text: str) -> bool: