Skip to content

Commit

Permalink
feat: 优化表格样式,简化边框设置并调整子元素样式
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed Feb 18, 2025
1 parent 229f932 commit e829931
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/MarkdownEditor/editor/elements/Table/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,16 @@ const genStyle: GenerateStyle<ChatTokenType> = (token) => {
'url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPAgMAAABGuH3ZAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAlQTFRFAAAAAAAA////g93P0gAAAAN0Uk5TAP//RFDWIQAAAC1JREFUeJxjYAgNYGBgyJqCTIRmTQ1gyFq1ago6AZQIYRAFEUg6QoE8BtEQBgAhdBSqzKYB6AAAAABJRU5ErkJggg==) 7 7, auto',
},
},
'tr:first-child': {
borderBottom: '1px solid #e8e8e8',
},
'td:first-child': {
tr: {
borderBottom: '1px solid #e8e8e8',
td: {
borderBottom: '1px solid #e8e8e8',
},
},
'th,td': {
padding: '8px 16px',
textAlign: 'left',
borderBottom: '1px solid rgb(209 213 219 / 0.8)',
borderRight: '1px solid rgb(209 213 219 / 0.8)',
borderLeft: '1px solid #e8e8e8',
},
'th:last-child,td:last-child': {
borderRight: 'none',
Expand All @@ -79,9 +78,6 @@ const genStyle: GenerateStyle<ChatTokenType> = (token) => {
'th:first-child': {
borderTopLeftRadius: 16,
},
'tr:last-child th,tr:last-child td': {
borderBottom: 'none',
},
},
},
};
Expand Down

1 comment on commit e829931

@vercel
Copy link

@vercel vercel bot commented on e829931 Feb 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.