mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-21 07:10:33 +00:00
Merge pull request #880 from bigcapitalhq/fix-dark-mode-bank-transaction-drawer
fix: darkmode bank transaction drawer
This commit is contained in:
@@ -24,11 +24,19 @@ export const TD = styled.td`
|
|||||||
export const TRDarkSingleLine = styled(TR)`
|
export const TRDarkSingleLine = styled(TR)`
|
||||||
${TD} {
|
${TD} {
|
||||||
border-bottom: 1px solid #000;
|
border-bottom: 1px solid #000;
|
||||||
|
|
||||||
|
.bp4-dark & {
|
||||||
|
border-bottom-color: var(--color-dark-gray5);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
export const TRDarkDoubleLines = styled(TR)`
|
export const TRDarkDoubleLines = styled(TR)`
|
||||||
${TD} {
|
${TD} {
|
||||||
border-bottom: 3px double #000;
|
border-bottom: 3px double #000;
|
||||||
|
|
||||||
|
.bp4-dark & {
|
||||||
|
border-bottom-color: var(--color-dark-gray5);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|||||||
@@ -31,13 +31,25 @@
|
|||||||
.asideContent{
|
.asideContent{
|
||||||
background: #F6F7F9;
|
background: #F6F7F9;
|
||||||
height: 335px;
|
height: 335px;
|
||||||
|
|
||||||
|
:global(.bp4-dark) & {
|
||||||
|
background: var(--color-dark-gray2);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.asideRoot {
|
.asideRoot {
|
||||||
flex: 1 1 0;
|
flex: 1 1 0;
|
||||||
box-shadow: 0 0 0 1px rgba(17,20,24,.1),0 1px 1px rgba(17,20,24,.2),0 2px 6px rgba(17,20,24,.2);
|
box-shadow: 0 0 0 1px rgba(17,20,24,.1),0 1px 1px rgba(17,20,24,.2),0 2px 6px rgba(17,20,24,.2);
|
||||||
|
|
||||||
|
:global(.bp4-dark) & {
|
||||||
|
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1),0 1px 1px rgba(255, 255, 255, 0.2),0 2px 6px rgba(255, 255, 255, 0.2);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.asideFooter {
|
.asideFooter {
|
||||||
background: #F6F7F9;
|
background: #F6F7F9;
|
||||||
|
|
||||||
|
:global(.bp4-dark) & {
|
||||||
|
background: var(--color-dark-gray2);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -5,6 +5,7 @@ import { CommercialDocEntriesTable } from '@/components';
|
|||||||
|
|
||||||
import { useCashflowTransactionColumns } from './utils';
|
import { useCashflowTransactionColumns } from './utils';
|
||||||
import { useCashflowTransactionDrawerContext } from './CashflowTransactionDrawerProvider';
|
import { useCashflowTransactionDrawerContext } from './CashflowTransactionDrawerProvider';
|
||||||
|
import { TableStyle } from '@/constants';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cashflow transaction drawer table.
|
* Cashflow transaction drawer table.
|
||||||
@@ -15,5 +16,11 @@ export default function CashflowTransactionDrawerTable() {
|
|||||||
cashflowTransaction: { transactions },
|
cashflowTransaction: { transactions },
|
||||||
} = useCashflowTransactionDrawerContext();
|
} = useCashflowTransactionDrawerContext();
|
||||||
|
|
||||||
return <CommercialDocEntriesTable columns={columns} data={transactions} />;
|
return (
|
||||||
|
<CommercialDocEntriesTable
|
||||||
|
columns={columns}
|
||||||
|
data={transactions}
|
||||||
|
styleName={TableStyle.Constrant}
|
||||||
|
/>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
// @ts-nocheck
|
// @ts-nocheck
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { DrawerBody } from '@/components';
|
import { DrawerBody } from '@/components';
|
||||||
|
|
||||||
import InvoiceDetail from './InvoiceDetail';
|
import InvoiceDetail from './InvoiceDetail';
|
||||||
import { InvoiceDetailDrawerProvider } from './InvoiceDetailDrawerProvider';
|
import { InvoiceDetailDrawerProvider } from './InvoiceDetailDrawerProvider';
|
||||||
|
|
||||||
|
|||||||
@@ -130,7 +130,8 @@ function PaymentMadeFormHeaderFields({ organization: { base_currency } }) {
|
|||||||
name={'payment_date'}
|
name={'payment_date'}
|
||||||
{...momentFormatter('YYYY/MM/DD')}
|
{...momentFormatter('YYYY/MM/DD')}
|
||||||
popoverProps={{ position: Position.BOTTOM, minimal: true }}
|
popoverProps={{ position: Position.BOTTOM, minimal: true }}
|
||||||
inputProps={{ leftIcon: <Icon icon={'date-range'} />, fill: true }}
|
inputProps={{ leftIcon: <Icon icon={'date-range'} /> }}
|
||||||
|
fill
|
||||||
fastField
|
fastField
|
||||||
/>
|
/>
|
||||||
</FFormGroup>
|
</FFormGroup>
|
||||||
|
|||||||
@@ -13,37 +13,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.table {
|
|
||||||
.thead .th {
|
|
||||||
background: transparent;
|
|
||||||
color: #222222;
|
|
||||||
border-bottom: 1px solid #000000;
|
|
||||||
border-top: 1px solid #000000;
|
|
||||||
padding: 0.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tbody .tr .td {
|
|
||||||
background: transparent;
|
|
||||||
padding: 0.5rem 0.5rem;
|
|
||||||
border-bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tbody .tr:last-child .td {
|
|
||||||
border-bottom: 1px solid #d2dce2;
|
|
||||||
}
|
|
||||||
|
|
||||||
.thead,
|
|
||||||
.tbody {
|
|
||||||
.tr .td,
|
|
||||||
.tr .th {
|
|
||||||
&.credit,
|
|
||||||
&.debit {
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&__content {
|
&__content {
|
||||||
&-header {
|
&-header {
|
||||||
margin-bottom: 35px;
|
margin-bottom: 35px;
|
||||||
@@ -86,9 +55,17 @@
|
|||||||
|
|
||||||
&--subtotal {
|
&--subtotal {
|
||||||
border-bottom: 1px solid #000;
|
border-bottom: 1px solid #000;
|
||||||
|
|
||||||
|
.bp4-dark & {
|
||||||
|
border-bottom-color: var(--color-dark-gray5);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
&--total {
|
&--total {
|
||||||
border-bottom: 3px double #000;
|
border-bottom: 3px double #000;
|
||||||
|
|
||||||
|
.bp4-dark & {
|
||||||
|
border-bottom-color: var(--color-dark-gray5);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
&--subtotal,
|
&--subtotal,
|
||||||
&--total {
|
&--total {
|
||||||
|
|||||||
Reference in New Issue
Block a user