From 9e782318b6272873cc571927f81e47b0d65a50ee Mon Sep 17 00:00:00 2001 From: Charles Zhao Date: Thu, 2 Feb 2023 21:58:32 +0800 Subject: [PATCH] fix(console): improve table styles in markdown component (#3047) --- .../src/components/Markdown/index.module.scss | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/packages/console/src/components/Markdown/index.module.scss b/packages/console/src/components/Markdown/index.module.scss index 22448932f..2e549a4a1 100644 --- a/packages/console/src/components/Markdown/index.module.scss +++ b/packages/console/src/components/Markdown/index.module.scss @@ -61,6 +61,32 @@ margin: _.unit(3) 0; } + table { + border: 1px solid var(--color-divider); + border-spacing: 0; + width: 100%; + table-layout: fixed; + word-break: break-word; + + thead { + th { + font: var(--font-subhead-2); + color: var(--color-text); + padding: _.unit(3); + border-bottom: 1px solid var(--color-divider); + text-align: left; + } + } + + tbody { + td { + font: var(--font-body-2); + border-bottom: 1px solid var(--color-divider); + padding: _.unit(3); + } + } + } + table + table { margin-top: _.unit(3); }