Skip to content

Commit

Permalink
refactor: remove padding style from editor column block (halo-dev#6407)
Browse files Browse the repository at this point in the history
#### What type of PR is this?

/area editor
/kind improvement
/milestone 2.18.x

#### What this PR does / why we need it:

移除编辑器 Column 的默认 padding 样式。

See halo-dev#6377 (comment)

#### Which issue(s) this PR fixes:

Fixes halo-dev#6377 

#### Does this PR introduce a user-facing change?

```release-note
移除编辑器分栏卡片的默认 padding 样式。
```
  • Loading branch information
ruibaby authored Jul 29, 2024
1 parent f7ee732 commit 2b32715
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ui/packages/editor/src/extensions/columns/column.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const Column = Node.create({
parseHTML: (element) => element.getAttribute("index"),
},
style: {
default: "min-width: 0;padding: 12px;flex: 1 1;box-sizing: border-box;",
default: "min-width: 0;flex: 1 1;box-sizing: border-box;",
parseHTML: (element) => element.getAttribute("style"),
},
};
Expand Down
2 changes: 1 addition & 1 deletion ui/packages/editor/src/extensions/columns/columns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ const Columns = Node.create({
parseHTML: (element) => element.getAttribute("cols"),
},
style: {
default: "display: flex;width: 100%;grid-gap: 8px;gap: 8px;",
default: "display: flex;width: 100%;gap: 1em;",
parseHTML: (element) => element.getAttribute("style"),
},
};
Expand Down
1 change: 1 addition & 0 deletions ui/packages/editor/src/styles/columns.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
border: 1px solid #e7e9e8;
border-radius: 6px;
position: relative;
padding: 16px;
}
}
}
Expand Down

0 comments on commit 2b32715

Please sign in to comment.