fix(core): prevent emoji being clipped and adjust icon-picker default color (#13664)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- Style
- Updated icon picker to use the primary icon color, improving visual
consistency (including SVG icons).
- Improved emoji rendering in the document icon picker by applying an
emoji-specific font for elements marked as emoji, matching existing size
and line-height.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Cats Juice
2025-09-29 10:25:31 +08:00
committed by GitHub
parent 9f94d5c216
commit 12daefdf54
2 changed files with 4 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ export const contentRoot = style({
export const iconPicker = style({
padding: 0,
lineHeight: 1,
color: cssVarV2.icon.primary,
});
globalStyle(`${iconPicker} span:has(svg)`, {
lineHeight: 0,

View File

@@ -10,6 +10,9 @@ export const docIconPickerTrigger = style({
fontSize: 60,
lineHeight: 1,
},
'&[data-icon-type="emoji"]': {
fontFamily: 'emoji',
},
},
});