Skip to content

Commit 2bd1165

Browse files
Janpotclaude
andcommitted
Replace KaTeX arrows with emoji in bundle size reports
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent ba8beff commit 2bd1165

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

packages/bundle-size-checker/src/renderMarkdownReport.js

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,6 @@
77
import { calculateSizeDiff } from './sizeDiff.js';
88
import { fetchSnapshot } from './fetchSnapshot.js';
99
import { displayPercentFormatter, byteSizeChangeFormatter } from './formatUtils.js';
10-
/**
11-
*
12-
* @param {'▲' | '▼'} symbol
13-
* @param {KatexColor} color
14-
* @returns
15-
*/
16-
function formatSymbol(symbol, color) {
17-
return `<sup>\${\\tiny{\\color{${color}}${symbol}}}$</sup>`;
18-
}
1910

2011
/**
2112
* Generates a symbol based on the relative change value.
@@ -24,16 +15,16 @@ function formatSymbol(symbol, color) {
2415
*/
2516
function getChangeIcon(relative) {
2617
if (relative === null) {
27-
return formatSymbol('▲', 'orangered');
18+
return '🔺';
2819
}
2920
if (relative === -1) {
30-
return formatSymbol('▼', 'cornflowerblue');
21+
return '▼';
3122
}
3223
if (relative < 0) {
33-
return formatSymbol('▼', 'green');
24+
return '▼';
3425
}
3526
if (relative > 0) {
36-
return formatSymbol('▲', 'red');
27+
return '🔺';
3728
}
3829
return ' ';
3930
}

0 commit comments

Comments
 (0)