fix: title icon display (#14101)

fix #14073
This commit is contained in:
DarkSky
2025-12-14 01:00:01 +08:00
committed by GitHub
parent 844b9d9592
commit 4717886c9e
3 changed files with 7 additions and 0 deletions

View File

@@ -18,6 +18,11 @@ export const iconPicker = style({
lineHeight: 1,
color: cssVarV2.icon.primary,
});
export const iconContent = style({
display: 'contents',
});
globalStyle(`${iconPicker} span:has(svg)`, {
lineHeight: 0,
});

View File

@@ -85,6 +85,7 @@ export const IconEditor = ({
data-icon-type={icon?.type}
aria-label={icon ? 'Change Icon' : 'Select Icon'}
title={icon ? 'Change Icon' : 'Select Icon'}
contentClassName={styles.iconContent}
>
<IconRenderer data={icon} fallback={iconPlaceholder} />
</Button>

View File

@@ -20,6 +20,7 @@ export const EmojiButton = memo(function EmojiButton({
size={24}
style={{ padding: 4 }}
icon={<span>{emoji}</span>}
iconStyle={{ justifyContent: 'center' }}
onClick={handleClick}
/>
);