Skip to content

Commit c5f018e

Browse files
committed
💄(frontend) adapt some style
- editor block padding only when background - increase icon shadow grid
1 parent 1c93fbc commit c5f018e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
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
}

src/frontend/apps/impress/src/features/docs/docs-grid/components/DocsGridItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const DocsGridItem = ({ doc }: DocsGridItemProps) => {
4040
$align="center"
4141
role="row"
4242
$gap="20px"
43-
$padding={{ vertical: '2xs', horizontal: isDesktop ? 'base' : 'xs' }}
43+
$padding={{ vertical: '4xs', horizontal: isDesktop ? 'base' : 'xs' }}
4444
$css={css`
4545
cursor: pointer;
4646
border-radius: 4px;

src/frontend/apps/impress/src/features/docs/docs-grid/components/SimpleDocItem.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export const SimpleDocItem = ({
5050
background-color: transparent;
5151
filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.05));
5252
`}
53+
$padding={`${spacingsTokens['3xs']} 0`}
5354
>
5455
{isPinned ? (
5556
<PinnedDocumentIcon

0 commit comments

Comments
 (0)