Skip to content

Commit

Permalink
Padding changes + VRT
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-jeremy committed Nov 13, 2024
1 parent e61ba6f commit 3756d76
Show file tree
Hide file tree
Showing 17 changed files with 15 additions and 16 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,6 @@ export function TransactionList({
style={{
...styles.smallText,
backgroundColor: theme.pageBackground,
borderBottom: `1px solid ${theme.tableBorder}`,
borderTop: `1px solid ${theme.tableBorder}`,
color: theme.tableHeaderText,
display: 'flex',
justifyContent: 'center',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import React, { type ComponentPropsWithoutRef } from 'react';
import React, {
type CSSProperties,
type ComponentPropsWithoutRef,
} from 'react';
import { mergeProps } from 'react-aria';
import { ListBoxItem } from 'react-aria-components';
import { useSelector } from 'react-redux';
Expand Down Expand Up @@ -114,12 +117,16 @@ export function TransactionListItem({

const prettyCategory = specialCategory || categoryName;

const textStyle = isPreview
? {
fontStyle: 'italic',
color: theme.pageTextLight,
}
: {};
const textStyle: CSSProperties = {
...styles.text,
fontSize: 14,
...(isPreview
? {
fontStyle: 'italic',
color: theme.pageTextLight,
}
: {}),
};

return (
<ListBoxItem textValue={id} {...props}>
Expand Down Expand Up @@ -157,7 +164,7 @@ export function TransactionListItem({
flex: 1,
alignItems: 'center',
justifyContent: 'space-between',
padding: '0 10px',
padding: '0 4px',
}}
>
<View>
Expand All @@ -174,9 +181,7 @@ export function TransactionListItem({
)}
<TextOneLine
style={{
...styles.text,
...textStyle,
fontSize: 14,
fontWeight: isAdded ? '600' : '400',
...(prettyDescription === '' && {
color: theme.tableTextLight,
Expand Down Expand Up @@ -250,11 +255,7 @@ export function TransactionListItem({
<View style={{ justifyContent: 'center' }}>
<Text
style={{
...styles.text,
...textStyle,
marginLeft: 25,
marginRight: 5,
fontSize: 14,
...makeAmountFullStyle(amount),
}}
>
Expand Down

0 comments on commit 3756d76

Please sign in to comment.