Commit c16c2f46a1
Unsigned
Layout: unified · split
docs/.vitepress/configs/markdown/emoji.ts +1 −1
| @@ -261,7 +261,7 @@ export function renderEmojiMarkup(markup: string) { | |||
| 261 | const wrap = (cls: string) => | 261 | const wrap = (cls: string) => |
| 262 | tip | 262 | tip |
| 263 | ? `<span class="icon-tip" data-tip="${tip}" tabindex="-1"><span class="${cls}"></span></span>` | 263 | ? `<span class="icon-tip" data-tip="${tip}" tabindex="-1"><span class="${cls}"></span></span>` |
| 264 | : `<span class="${cls}"></span>` | 264 | : `<span class="icon"><span class="${cls}"></span></span>` |
| 265 | 265 | ||
| 266 | // Check for custom icon aliases first | 266 | // Check for custom icon aliases first |
| 267 | if (customIconAliases[markup]) return wrap(`i-${customIconAliases[markup]}`) | 267 | if (customIconAliases[markup]) return wrap(`i-${customIconAliases[markup]}`) |
docs/.vitepress/theme/styles/style.scss +6
| @@ -1770,6 +1770,12 @@ html.effects-disabled { | |||
| 1770 | cursor: help; | 1770 | cursor: help; |
| 1771 | } | 1771 | } |
| 1772 | 1772 | ||
| 1773 | /* Base icon wrapper for consistent alignment */ | ||
| 1774 | .icon { | ||
| 1775 | display: inline-block; | ||
| 1776 | vertical-align: -0.125em; | ||
| 1777 | } | ||
| 1778 | |||
| 1773 | /* Fixed-position tooltip rendered into <body> by JS to escape table overflow clipping */ | 1779 | /* Fixed-position tooltip rendered into <body> by JS to escape table overflow clipping */ |
| 1774 | .icon-tip-popup { | 1780 | .icon-tip-popup { |
| 1775 | position: fixed; | 1781 | position: fixed; |