fix height, wallet popup should stay at 400x320
This commit is contained in:
parent
956fc35a20
commit
6a2943618e
@ -42,7 +42,7 @@ export function HistoryPage(props: any): JSX.Element {
|
||||
}
|
||||
|
||||
export function HistoryView({ list }: { list: Transaction[] }) {
|
||||
return <div style={{ height: 'calc(20rem - 34px )', overflow: 'auto', width: '100%' }}>
|
||||
return <div style={{ height: 'calc(320px - 34px - 2em)', overflow: 'auto', width: '100%' }}>
|
||||
{list.map((tx, i) => (
|
||||
<TransactionItem key={i} tx={tx} />
|
||||
))}
|
||||
|
@ -83,7 +83,7 @@ export function TransactionView({ transaction, onDelete, onBack }: WalletTransac
|
||||
).amount
|
||||
return (
|
||||
<div style={{ display: 'flex', flexDirection: 'column', width: '100%' }} >
|
||||
<section style={{ color: transaction.pending ? 'gray' : '', flex: '1 0 auto', height: 'calc(20rem - 34px - 45px)', overflow: 'auto' }}>
|
||||
<section style={{ color: transaction.pending ? 'gray' : '', flex: '1 0 auto', height: 'calc(320px - 34px - 45px - 2em)', overflow: 'auto' }}>
|
||||
<span style="flat: left; font-size:small; color:gray">{transaction.timestamp.t_ms === "never" ? "never" : format(transaction.timestamp.t_ms, 'dd/MM/yyyy HH:mm:ss')}</span>
|
||||
<span style="float: right; font-size:small; color:gray">
|
||||
From <b>{transaction.exchangeBaseUrl}</b>
|
||||
@ -108,7 +108,7 @@ export function TransactionView({ transaction, onDelete, onBack }: WalletTransac
|
||||
|
||||
return (
|
||||
<div style={{ display: 'flex', flexDirection: 'column', width: '100%' }} >
|
||||
<section style={{ color: transaction.pending ? 'gray' : '', flex: '1 0 auto', height: 'calc(20rem - 34px - 45px)', overflow: 'auto' }}>
|
||||
<section style={{ color: transaction.pending ? 'gray' : '', flex: '1 0 auto', height: 'calc(320px - 34px - 45px - 2em)', overflow: 'auto' }}>
|
||||
<span style="flat: left; font-size:small; color:gray">{transaction.timestamp.t_ms === "never" ? "never" : format(transaction.timestamp.t_ms, 'dd/MM/yyyy HH:mm:ss')}</span>
|
||||
<span style="float: right; font-size:small; color:gray">
|
||||
To <b>{transaction.info.merchant.name}</b>
|
||||
@ -146,7 +146,7 @@ export function TransactionView({ transaction, onDelete, onBack }: WalletTransac
|
||||
).amount
|
||||
return (
|
||||
<div style={{ display: 'flex', flexDirection: 'column', width: '100%' }} >
|
||||
<section style={{ color: transaction.pending ? 'gray' : '', flex: '1 0 auto', height: 'calc(20rem - 34px - 45px)', overflow: 'auto' }}>
|
||||
<section style={{ color: transaction.pending ? 'gray' : '', flex: '1 0 auto', height: 'calc(320px - 34px - 45px - 2em)', overflow: 'auto' }}>
|
||||
<span style="flat: left; font-size:small; color:gray">{transaction.timestamp.t_ms === "never" ? "never" : format(transaction.timestamp.t_ms, 'dd/MM/yyyy HH:mm:ss')}</span>
|
||||
<span style="float: right; font-size:small; color:gray">
|
||||
To <b>{transaction.targetPaytoUri}</b>
|
||||
@ -166,7 +166,7 @@ export function TransactionView({ transaction, onDelete, onBack }: WalletTransac
|
||||
).amount
|
||||
return (
|
||||
<div style={{ display: 'flex', flexDirection: 'column', width: '100%' }} >
|
||||
<section style={{ color: transaction.pending ? 'gray' : '', flex: '1 0 auto', height: 'calc(20rem - 34px - 45px)', overflow: 'auto' }}>
|
||||
<section style={{ color: transaction.pending ? 'gray' : '', flex: '1 0 auto', height: 'calc(320px - 34px - 45px - 2em)', overflow: 'auto' }}>
|
||||
<span style="flat: left; font-size:small; color:gray">{transaction.timestamp.t_ms === "never" ? "never" : format(transaction.timestamp.t_ms, 'dd/MM/yyyy HH:mm:ss')}</span>
|
||||
<span style="float: right; font-size:small; color:gray">
|
||||
From <b>{transaction.exchangeBaseUrl}</b>
|
||||
@ -186,7 +186,7 @@ export function TransactionView({ transaction, onDelete, onBack }: WalletTransac
|
||||
).amount
|
||||
return (
|
||||
<div style={{ display: 'flex', flexDirection: 'column', width: '100%' }} >
|
||||
<section style={{ color: transaction.pending ? 'gray' : '', flex: '1 0 auto', height: 'calc(20rem - 34px - 45px)', overflow: 'auto' }}>
|
||||
<section style={{ color: transaction.pending ? 'gray' : '', flex: '1 0 auto', height: 'calc(320px - 34px - 45px - 2em)', overflow: 'auto' }}>
|
||||
<span style="flat: left; font-size:small; color:gray">{transaction.timestamp.t_ms === "never" ? "never" : format(transaction.timestamp.t_ms, 'dd/MM/yyyy HH:mm:ss')}</span>
|
||||
<span style="float: right; font-size:small; color:gray">
|
||||
From <b>{transaction.merchantBaseUrl}</b>
|
||||
@ -206,7 +206,7 @@ export function TransactionView({ transaction, onDelete, onBack }: WalletTransac
|
||||
).amount
|
||||
return (
|
||||
<div style={{ display: 'flex', flexDirection: 'column', width: '100%' }} >
|
||||
<section style={{ color: transaction.pending ? 'gray' : '', flex: '1 0 auto', height: 'calc(20rem - 34px - 45px)', overflow: 'auto' }}>
|
||||
<section style={{ color: transaction.pending ? 'gray' : '', flex: '1 0 auto', height: 'calc(320px - 34px - 45px - 2em)', overflow: 'auto' }}>
|
||||
<span style="flat: left; font-size:small; color:gray">{transaction.timestamp.t_ms === "never" ? "never" : format(transaction.timestamp.t_ms, 'dd/MM/yyyy HH:mm:ss')}</span>
|
||||
<span style="float: right; font-size:small; color:gray">
|
||||
From <b>{transaction.info.merchant.name}</b>
|
||||
|
@ -88,7 +88,7 @@ function Application() {
|
||||
return (
|
||||
<div>
|
||||
<Match>{({ path }: any) => <WalletNavBar current={path} />}</Match >
|
||||
<div style={{ margin: "1em", width: 400, height: 'calc(20rem - 34px)' }}>
|
||||
<div style={{ padding: "1em", width: 'calc(400px - 2em)', height: 'calc(320px - 34px - 2em)' }}>
|
||||
<Router>
|
||||
<Route path={Pages.balance} component={BalancePage} />
|
||||
<Route path={Pages.settings} component={SettingsPage} />
|
||||
|
Loading…
Reference in New Issue
Block a user