|
|
@@ -54,12 +54,13 @@ export const Header: React.FC<HeaderProps> = ({
|
|
|
// Reversed video for selected item
|
|
|
lines.push(`\x1B[7m ${name} \x1B[0m`);
|
|
|
} else {
|
|
|
- lines.push(` ${name} `);
|
|
|
+ // Dim text for unselected
|
|
|
+ lines.push(`\x1B[2m ${name} \x1B[0m`);
|
|
|
}
|
|
|
});
|
|
|
|
|
|
if (otherFiles.length > 6) {
|
|
|
- lines.push(` +${otherFiles.length - 6} more `);
|
|
|
+ lines.push(`\x1B[2m +${otherFiles.length - 6} more \x1B[0m`);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -73,7 +74,7 @@ export const Header: React.FC<HeaderProps> = ({
|
|
|
const row = startRow + idx;
|
|
|
const plainLen = line.replace(/\x1B\[[0-9;]*m/g, '').length;
|
|
|
const padding = maxLen - plainLen;
|
|
|
- const startCol = cols - maxLen - 4; // Right margin of 4
|
|
|
+ const startCol = cols - maxLen - 1; // Right margin of 1 (matches header padding)
|
|
|
output += `\x1B[${row};${startCol}H${' '.repeat(padding)}${line}`;
|
|
|
});
|
|
|
|
|
|
@@ -86,8 +87,8 @@ export const Header: React.FC<HeaderProps> = ({
|
|
|
let clear = '\x1B[s';
|
|
|
lines.forEach((_, idx) => {
|
|
|
const row = startRow + idx;
|
|
|
- const startCol = cols - maxLen - 4;
|
|
|
- clear += `\x1B[${row};${startCol}H${' '.repeat(maxLen + 4)}`;
|
|
|
+ const startCol = cols - maxLen - 1;
|
|
|
+ clear += `\x1B[${row};${startCol}H${' '.repeat(maxLen + 1)}`;
|
|
|
});
|
|
|
clear += '\x1B[u';
|
|
|
process.stdout.write(clear);
|
|
|
@@ -97,12 +98,12 @@ export const Header: React.FC<HeaderProps> = ({
|
|
|
return (
|
|
|
<Box flexDirection="column">
|
|
|
{/* Header bar - always single line with border */}
|
|
|
- <Box borderStyle="single" borderBottom={true} borderTop={false} borderLeft={false} borderRight={false}>
|
|
|
+ <Box borderStyle="single" borderBottom={true} borderTop={false} borderLeft={false} borderRight={false} borderDimColor>
|
|
|
<Box width={width}>
|
|
|
<Text bold color="blue">{leftContent}</Text>
|
|
|
<Box flexGrow={1} />
|
|
|
- <Text color="gray">{displayName} {isDropdownOpen ? '▲' : '▼'}</Text>
|
|
|
- <Text> </Text>
|
|
|
+ <Text dimColor>{displayName} {isDropdownOpen ? '▲' : '▼'}</Text>
|
|
|
+ <Text> </Text>
|
|
|
</Box>
|
|
|
</Box>
|
|
|
</Box>
|