Skip to content

Commit cf8264e

Browse files
committed
💄(frontend) adapt padding on editor paragraph
A padding was added to the paragraph in the editor to look nicer with a background color, but this caused the text to be misaligned with some elements when there is no background. We add the padding only when there is a background color.
1 parent f2ed899 commit cf8264e

File tree

1 file changed

+1
-2
lines changed
  • src/frontend/apps/impress/src/features/docs/doc-editor

1 file changed

+1
-2
lines changed

src/frontend/apps/impress/src/features/docs/doc-editor/styles.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ export const cssEditor = (readonly: boolean) => css`
7272
border-radius: var(--c--theme--spacings--3xs);
7373
}
7474
75-
.bn-block-content[data-content-type='paragraph'],
76-
.bn-block-content[data-content-type='heading'] {
75+
.bn-block[data-background-color] > .bn-block-content {
7776
padding: var(--c--theme--spacings--3xs) var(--c--theme--spacings--3xs);
7877
border-radius: var(--c--theme--spacings--3xs);
7978
}

0 commit comments

Comments
 (0)