mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-23 20:18:42 +08:00
fix(editor): inline code style (#12585)
Closes: #12576 Closes: [BS-2080](https://linear.app/affine-design/issue/BS-2080/update-inline-code-font-size) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Style** - Improved the appearance of code elements within lists by adjusting font size and padding. - Updated inline code styling for better vertical alignment and consistency with surrounding text. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -40,6 +40,11 @@ export const listBlockStyles = css`
|
|||||||
font-size: var(--affine-font-base);
|
font-size: var(--affine-font-base);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
affine-list code {
|
||||||
|
font-size: calc(var(--affine-font-base) - 3px);
|
||||||
|
padding: 0px 4px 2px;
|
||||||
|
}
|
||||||
|
|
||||||
.affine-list-block-container {
|
.affine-list-block-container {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
|||||||
@@ -23,7 +23,8 @@ export function affineTextStyles(
|
|||||||
'border-radius': '4px',
|
'border-radius': '4px',
|
||||||
color: 'var(--affine-text-primary-color)',
|
color: 'var(--affine-text-primary-color)',
|
||||||
'font-variant-ligatures': 'none',
|
'font-variant-ligatures': 'none',
|
||||||
'line-height': 'auto',
|
'vertical-align': 'bottom',
|
||||||
|
'line-height': 'inherit',
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user