Skip to content

Commit

Permalink
style: 使用 flex 避免超级块内的相邻子块发生外边距折叠 margin collapsing
Browse files Browse the repository at this point in the history
  • Loading branch information
TCOTC committed Dec 21, 2024
1 parent 6c36912 commit e80b340
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/assets/scss/protyle/_wysiwyg.scss
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,13 @@
}

&.sb {
display: flex;
flex-direction: column;
padding: 0;
max-width: 100%;

&[data-sb-layout="col"] {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-between;
column-gap: 1.5em;
Expand Down

0 comments on commit e80b340

Please sign in to comment.