Skip to content

Commit

Permalink
feat: 调整多个组件的边框半径为12px,以统一样式
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed Jan 17, 2025
1 parent 0ef758a commit a908b41
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const genStyle: GenerateStyle<ChatTokenType> = (token) => {
alignItems: 'center',
gap: '4px',
padding: '4px',
borderRadius: '18px',
borderRadius: '12px',
cursor: 'pointer',
'&:hover': {
backgroundColor: 'rgb(209 213 219 / 0.4)',
Expand Down
2 changes: 1 addition & 1 deletion src/MarkdownEditor/editor/elements/list/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const genStyle: GenerateStyle<ChatTokenType> = (token) => {
[`li:not(${token.componentCls}-task) > :first-child .ant-md-editor-drag-handle`]:
{
paddingLeft: '2px',
paddingRight: '18px',
paddingRight: '12px',
left: '-44px !important',
},
[`li${token.componentCls}-task > :nth-child(2) .ant-md-editor-drag-handle`]:
Expand Down
6 changes: 3 additions & 3 deletions src/MarkdownEditor/editor/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const genStyle: GenerateStyle<ChatTokenType> = (token) => {
marginBottom: '0.3em',
},
'.attach .file': {
borderRadius: '18px',
borderRadius: '12px',
borderWidth: '1px',
borderColor: 'rgb(229 231 235 / 1)',
backgroundColor: 'rgb(249 250 251 / 1)',
Expand Down Expand Up @@ -206,7 +206,7 @@ const genStyle: GenerateStyle<ChatTokenType> = (token) => {
width: '4px',
position: 'absolute',
display: 'block',
borderRadius: '18px',
borderRadius: '12px',
backgroundColor: 'rgb(107 114 128 / 1)',
},
},
Expand Down Expand Up @@ -236,7 +236,7 @@ const genStyle: GenerateStyle<ChatTokenType> = (token) => {
cursor: 'pointer',
},
'& &-high-text': {
borderRadius: '18px',
borderRadius: '12px',
},
'& &-m-html': {
color: 'rgba(0,0,0,0.45)',
Expand Down
2 changes: 1 addition & 1 deletion src/MarkdownEditor/editor/tools/ToolBar/floatBarStyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const genStyle: GenerateStyle<ChatTokenType> = (token) => {
border: '1px solid rgb(229 231 235 / 0.8)',
overflow: 'hidden',
height: '28px',
borderRadius: '18px',
borderRadius: '12px',
backgroundColor: 'rgb(255 255 255)',
fontSize: '1.05em',
color: 'rgb(107 114 128 / 80%)',
Expand Down
2 changes: 1 addition & 1 deletion src/MarkdownEditor/editor/tools/insertAutocompleteStyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const genStyle: GenerateStyle<ChatTokenType> = (token) => {
lineHeight: '24px',
gap: '4px',
padding: '4px',
borderRadius: '18px',
borderRadius: '12px',
cursor: 'pointer',
'&:hover': {
backgroundColor: 'rgb(209 213 219 / 0.4)',
Expand Down
2 changes: 1 addition & 1 deletion src/MarkdownEditor/editor/tools/tableAttrStyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const genStyle: GenerateStyle<ChatTokenType> = (token) => {
position: 'absolute',
zIndex: 10,
gap: '4px',
borderRadius: '18px',
borderRadius: '12px',
'&-item': {
display: 'flex',
fontSize: '1.1em',
Expand Down

1 comment on commit a908b41

@vercel
Copy link

@vercel vercel bot commented on a908b41 Jan 17, 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.