mirror of
https://github.com/linuxserver/budge.git
synced 2026-03-09 00:08:38 +08:00
tweaked account amount text sizes, fixed action for add transaction button (this broke when I moved it into the 'title' prop)
This commit is contained in:
parent
f0e8f541ba
commit
e7bbc3a8dc
@ -759,6 +759,10 @@ export default function Account(props) {
|
||||
// setBulkEnabled(data.length > 0)
|
||||
}
|
||||
|
||||
const addTransactionClick = () => {
|
||||
tableProps.actions[0].onClick()
|
||||
}
|
||||
|
||||
return (
|
||||
<div style={{ maxWidth: '100%' }}>
|
||||
<MaterialTable
|
||||
@ -779,7 +783,7 @@ export default function Account(props) {
|
||||
}
|
||||
>
|
||||
<ButtonGroup variant="text" aria-label="outlined button group">
|
||||
<Button size="small">
|
||||
<Button size="small" onClick={addTransactionClick}>
|
||||
<Stack direction="row" alignItems="center" spacing={0.5}>
|
||||
<AddCircleIcon
|
||||
style={{
|
||||
|
||||
@ -91,6 +91,7 @@ export default function BudgetTableHeader({ accountId, name }) {
|
||||
color: getBalanceColor(account.cleared, theme),
|
||||
fontWeight: 'bold',
|
||||
}}
|
||||
variant="h6"
|
||||
>
|
||||
{intlFormat(account.cleared)}
|
||||
</Typography>
|
||||
@ -119,6 +120,7 @@ export default function BudgetTableHeader({ accountId, name }) {
|
||||
color: getBalanceColor(account.uncleared, theme),
|
||||
fontWeight: 'bold',
|
||||
}}
|
||||
variant="h6"
|
||||
>
|
||||
{intlFormat(account.uncleared)}
|
||||
</Typography>
|
||||
@ -147,6 +149,7 @@ export default function BudgetTableHeader({ accountId, name }) {
|
||||
color: getBalanceColor(account.balance, theme),
|
||||
fontWeight: 'bold',
|
||||
}}
|
||||
variant="h6"
|
||||
>
|
||||
{intlFormat(account.balance)}
|
||||
</Typography>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user