Skip to content

Commit f19fa93

Browse files
committed
💄(frontend) fix gap and alignment icons
Fix some gaps and alignment of the icons.
1 parent af3d90d commit f19fa93

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

src/frontend/apps/impress/src/features/docs/doc-editor/components/custom-blocks/PdfBlock.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,13 @@ export const PdfBlock = createReactBlockSpec(
4444
<Box ref={contentRef} className="bn-file-block-content-wrapper">
4545
<PDFBlockStyle />
4646
<ResizableFileBlockWrapper
47-
buttonIcon={<Icon iconName="upload" />}
47+
buttonIcon={
48+
<Icon
49+
iconName="upload"
50+
$size="24px"
51+
$css="line-height: normal;"
52+
/>
53+
}
4854
block={block}
4955
editor={editor as unknown as FileBlockEditor}
5056
buttonText={t('Add PDF')}

src/frontend/apps/impress/src/features/docs/doc-header/components/AlertNetwork.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const AlertNetwork = () => {
2424
$padding="xs"
2525
$flex={1}
2626
$align="center"
27-
$gap={spacingsTokens['3xs']}
27+
$gap={spacingsTokens['2xs']}
2828
$css={css`
2929
border: 1px solid var(--c--theme--colors--warning-300);
3030
`}

src/frontend/apps/impress/src/features/docs/doc-header/components/AlertPublic.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const AlertPublic = ({ isPublicDoc }: { isPublicDoc: boolean }) => {
1818
$padding="xs"
1919
$flex={1}
2020
$align="center"
21-
$gap={spacingsTokens['3xs']}
21+
$gap={spacingsTokens['2xs']}
2222
$css={css`
2323
border: 1px solid var(--c--theme--colors--primary-300, #e3e3fd);
2424
`}

src/frontend/apps/impress/src/features/docs/doc-header/components/AlertRestore.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export const AlertRestore = ({ doc }: { doc: Doc }) => {
9191
$size="18px"
9292
variant="symbols-outlined"
9393
/>
94-
<Text $theme="danger" $variation="600" $size="s">
94+
<Text $theme="danger" $variation="600" $size="s" $css="line-height:1;">
9595
{t('Restore')}
9696
</Text>
9797
</BoxButton>

0 commit comments

Comments
 (0)