Skip to content

Commit

Permalink
Adjust fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-jeremy committed Nov 23, 2023
1 parent 8eda5eb commit 17935f6
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ function defaultRenderGroupHeader(props: AccountGroupHeaderProps): ReactNode {
type AccountItemProps = {
item: AccountEntity;
className?: string;
style?: CSSProperties;
highlighted?: boolean;
embedded?: boolean;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ function defaultRenderSplitTransactionButton(
type CategoryItemProps = {
item: CategoryEntity & { group?: CategoryGroupEntity };
className?: string;
style?: CSSProperties;
highlighted?: boolean;
embedded?: boolean;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@ function defaultRenderGroupHeader(props: PayeeGroupHeaderProps): ReactNode {
type PayeeItemProps = {
item: PayeeEntity;
className?: string;
style?: CSSProperties;
highlighted?: boolean;
embedded?: boolean;
};
Expand Down
40 changes: 20 additions & 20 deletions packages/desktop-client/src/components/modals/EditField.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,18 @@ export default function EditField({ modalProps, name, onSubmit }) {
modalProps.onClose();
}

const itemStyle = {
fontSize: 17,
fontWeight: 400,
paddingTop: 8,
paddingBottom: 8,
};

const { isNarrowWidth } = useResponsive();
let label, editor, minWidth;
let inputStyle = {
':focus': { boxShadow: 0 },
...(isNarrowWidth && { fontSize: 25 }),
...(isNarrowWidth && itemStyle),
};
let autocompleteProps = {
inputProps: { style: inputStyle },
Expand Down Expand Up @@ -106,7 +113,7 @@ export default function EditField({ modalProps, name, onSubmit }) {
{...props}
style={{
...styles.largeText,
color: theme.tableHeaderText,
color: theme.menuItemTextHeader,
paddingTop: 10,
paddingBottom: 10,
}}
Expand All @@ -116,10 +123,8 @@ export default function EditField({ modalProps, name, onSubmit }) {
<AccountItem
{...props}
style={{
...styles.largeText,
fontWeight: 450,
paddingTop: 10,
paddingBottom: 10,
...itemStyle,
color: theme.menuItemText,
borderRadius: 0,
borderTop: `1px solid ${theme.pillBorder}`,
}}
Expand Down Expand Up @@ -155,7 +160,7 @@ export default function EditField({ modalProps, name, onSubmit }) {
{...props}
style={{
...styles.largeText,
color: theme.tableHeaderText,
color: theme.menuItemTextHeader,
paddingTop: 10,
paddingBottom: 10,
}}
Expand All @@ -166,21 +171,18 @@ export default function EditField({ modalProps, name, onSubmit }) {
{...props}
Icon={CreatePayeeIcon}
style={{
...styles.largeText,
fontWeight: 450,
paddingTop: 5,
paddingBottom: 5,
...itemStyle,
paddingTop: 4,
paddingBottom: 4,
}}
/>
)}
renderPayeeItem={props => (
<PayeeItem
{...props}
style={{
...styles.largeText,
fontWeight: 450,
paddingTop: 10,
paddingBottom: 10,
...itemStyle,
color: theme.menuItemText,
borderRadius: 0,
borderTop: `1px solid ${theme.pillBorder}`,
}}
Expand Down Expand Up @@ -221,7 +223,7 @@ export default function EditField({ modalProps, name, onSubmit }) {
{...props}
style={{
...styles.largeText,
color: theme.tableHeaderText,
color: theme.menuItemTextHeader,
paddingTop: 10,
paddingBottom: 10,
}}
Expand All @@ -231,10 +233,8 @@ export default function EditField({ modalProps, name, onSubmit }) {
<CategoryItem
{...props}
style={{
...styles.largeText,
fontWeight: 450,
paddingTop: 10,
paddingBottom: 10,
...itemStyle,
color: theme.menuItemText,
borderRadius: 0,
borderTop: `1px solid ${theme.pillBorder}`,
}}
Expand Down

0 comments on commit 17935f6

Please sign in to comment.