fix(cli): preserve two-space gaps in mosaic icon tiles
Extract gap string to const to prevent prettier from collapsing the double-space literals between icon tiles.
This commit is contained in:
@@ -31,22 +31,24 @@ function formatContextWindow(n: number): string {
|
|||||||
* ·· pink ··
|
* ·· pink ··
|
||||||
* amber ·· teal
|
* amber ·· teal
|
||||||
*/
|
*/
|
||||||
|
// Two-space gap between tiles (extracted to avoid prettier collapse)
|
||||||
|
const GAP = ' ';
|
||||||
|
|
||||||
function MosaicIcon() {
|
function MosaicIcon() {
|
||||||
return (
|
return (
|
||||||
<Box flexDirection="column" marginRight={2}>
|
<Box flexDirection="column" marginRight={2}>
|
||||||
<Text>
|
<Text>
|
||||||
<Text color="#2f80ff">██</Text>
|
<Text color="#2f80ff">██</Text>
|
||||||
<Text> </Text>
|
<Text>{GAP}</Text>
|
||||||
<Text color="#8b5cf6">██</Text>
|
<Text color="#8b5cf6">██</Text>
|
||||||
</Text>
|
</Text>
|
||||||
<Text>
|
<Text>
|
||||||
<Text> </Text>
|
<Text>{GAP}</Text>
|
||||||
<Text color="#ec4899">██</Text>
|
<Text color="#ec4899">██</Text>
|
||||||
<Text> </Text>
|
|
||||||
</Text>
|
</Text>
|
||||||
<Text>
|
<Text>
|
||||||
<Text color="#f59e0b">██</Text>
|
<Text color="#f59e0b">██</Text>
|
||||||
<Text> </Text>
|
<Text>{GAP}</Text>
|
||||||
<Text color="#14b8a6">██</Text>
|
<Text color="#14b8a6">██</Text>
|
||||||
</Text>
|
</Text>
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
Reference in New Issue
Block a user