Fix TUI redraw artifacts in row-based views (#325)
Co-authored-by: pr0ln <pr0ln@pr0lnui-Macmini.local>
This commit is contained in:
File diff suppressed because one or more lines are too long
15
src/components/design-system/FullWidthRow.tsx
Normal file
15
src/components/design-system/FullWidthRow.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import * as React from 'react';
|
||||
import { Box } from '../../ink.js';
|
||||
|
||||
type Props = {
|
||||
children: React.ReactNode;
|
||||
};
|
||||
|
||||
export default function FullWidthRow({
|
||||
children
|
||||
}: Props): React.ReactNode {
|
||||
return <Box flexDirection="row" width="100%">
|
||||
{children}
|
||||
<Box flexGrow={1} />
|
||||
</Box>;
|
||||
}
|
||||
Reference in New Issue
Block a user