Skip to content

Commit

Permalink
Calculate nick width based on 8 characters
Browse files Browse the repository at this point in the history
  • Loading branch information
mhoran committed Mar 13, 2024
1 parent ff43f93 commit 5a99209
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/usecase/buffers/ui/Buffer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export default class Buffer extends React.PureComponent<Props, State> {
}}
style={[lineStyles.text, { opacity: 0, position: 'absolute' }]}
>
a
aaaaaaaa
</Text>
);
}
Expand Down
7 changes: 4 additions & 3 deletions src/usecase/buffers/ui/themes/Default.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ const BufferLine: React.FC<Props> = ({
style={[
styles.text,
{
width: letterWidth * 8,
paddingRight: letterWidth,
width: letterWidth,
textAlign: 'right'
}
]}
Expand All @@ -44,6 +43,7 @@ const BufferLine: React.FC<Props> = ({
);
})}
</Text>
<Text style={styles.text}>{' '}</Text>

<View style={[styles.messageContainer]}>
<Text style={styles.text}>
Expand All @@ -53,7 +53,8 @@ const BufferLine: React.FC<Props> = ({
</Text>
</View>

<Text style={[styles.text, { paddingLeft: letterWidth }]}>
<Text style={[styles.text]}>
{' '}
{formatDate(line.date)}
</Text>
</View>
Expand Down

0 comments on commit 5a99209

Please sign in to comment.