From b08be076b26e29a6ca4da84a7fb781a75aa36f9a Mon Sep 17 00:00:00 2001 From: liangxu Date: Sun, 5 Apr 2026 23:15:45 +0800 Subject: [PATCH] feat: enhance table styling in ArticleEditorCanvas for improved layout and readability --- .../src/components/ArticleEditorCanvas.vue | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/apps/admin-web/src/components/ArticleEditorCanvas.vue b/apps/admin-web/src/components/ArticleEditorCanvas.vue index 2467157..1708a6a 100644 --- a/apps/admin-web/src/components/ArticleEditorCanvas.vue +++ b/apps/admin-web/src/components/ArticleEditorCanvas.vue @@ -1988,6 +1988,29 @@ function runTableContextAction(action: TableContextMenuAction): void { pointer-events: none; } +.article-editor-canvas__surface :deep(.milkdown-table-block table) { + width: 100%; + border-collapse: collapse; + border-spacing: 0; + background: #ffffff; +} + +.article-editor-canvas__surface :deep(.milkdown-table-block th), +.article-editor-canvas__surface :deep(.milkdown-table-block td) { + min-width: 140px; + min-height: 58px; + padding: 12px 18px; + border: 2px solid #d7d7d7; + color: #1f2937; + caret-color: #000000; + font-size: 16px; + line-height: 1.55; + vertical-align: middle; + background: #ffffff; +} + + + .article-editor-canvas__mask { position: absolute; inset: 0;