fix: change the default sidebar width of the dashboard.

This commit is contained in:
a.bouhuolia
2022-11-06 16:08:39 +02:00
parent 9b9b43d065
commit 7de66f16ce
4 changed files with 76 additions and 72 deletions

View File

@@ -10,7 +10,7 @@ function DashboardSplitPane({
sidebarExpended, sidebarExpended,
children children
}) { }) {
const initialSize = 180; const initialSize = 220;
const [defaultSize, setDefaultSize] = useState( const [defaultSize, setDefaultSize] = useState(
parseInt(localStorage.getItem('dashboard-size'), 10) || initialSize, parseInt(localStorage.getItem('dashboard-size'), 10) || initialSize,

View File

@@ -543,59 +543,59 @@ export const SidebarMenu = [
// --------------------- // ---------------------
// # Projects Management // # Projects Management
// --------------------- // ---------------------
{ // {
text: 'Projects', // text: 'Projects',
type: ISidebarMenuItemType.Overlay, // type: ISidebarMenuItemType.Overlay,
overlayId: ISidebarMenuOverlayIds.Projects, // overlayId: ISidebarMenuOverlayIds.Projects,
children: [ // children: [
{ // {
text: 'Projects', // text: 'Projects',
type: ISidebarMenuItemType.Group, // type: ISidebarMenuItemType.Group,
children: [ // children: [
{ // {
text: 'Projects', // text: 'Projects',
href: '/projects', // href: '/projects',
type: ISidebarMenuItemType.Link, // type: ISidebarMenuItemType.Link,
permission: { // permission: {
subject: AbilitySubject.Project, // subject: AbilitySubject.Project,
ability: ProjectAction.View, // ability: ProjectAction.View,
}, // },
}, // },
], // ],
}, // },
{ // {
text: <T id={'New tasks'} />, // text: <T id={'New tasks'} />,
type: ISidebarMenuItemType.Group, // type: ISidebarMenuItemType.Group,
children: [ // children: [
{ // {
text: <T id={'projects.label.new_project'} />, // text: <T id={'projects.label.new_project'} />,
type: ISidebarMenuItemType.Dialog, // type: ISidebarMenuItemType.Dialog,
dialogName: 'project-form', // dialogName: 'project-form',
permission: { // permission: {
subject: AbilitySubject.Project, // subject: AbilitySubject.Project,
ability: ProjectAction.Create, // ability: ProjectAction.Create,
}, // },
}, // },
{ // {
text: <T id={'projects.label.new_time_entry'} />, // text: <T id={'projects.label.new_time_entry'} />,
type: ISidebarMenuItemType.Dialog, // type: ISidebarMenuItemType.Dialog,
dialogName: 'project-time-entry-form', // dialogName: 'project-time-entry-form',
}, // },
], // ],
}, // },
{ // {
text: <T id={'Reports'} />, // text: <T id={'Reports'} />,
type: ISidebarMenuItemType.Group, // type: ISidebarMenuItemType.Group,
children: [ // children: [
{ // {
text: <T id={'project_profitability_summary'} />, // text: <T id={'project_profitability_summary'} />,
href: '/financial-reports/project-profitability-summary', // href: '/financial-reports/project-profitability-summary',
type: ISidebarMenuItemType.Link, // type: ISidebarMenuItemType.Link,
}, // },
], // ],
}, // },
], // ],
}, // },
// --------------- // ---------------
// # Reports // # Reports
// --------------- // ---------------

View File

@@ -33,7 +33,7 @@ export const useGLEntriesTableColumns = () => {
accessor: ({ credit }) => credit.formatted_amount, accessor: ({ credit }) => credit.formatted_amount,
width: 100, width: 100,
className: 'credit', className: 'credit',
textAligment: 'right', align: 'right',
textOverview: true, textOverview: true,
}, },
{ {
@@ -42,6 +42,7 @@ export const useGLEntriesTableColumns = () => {
width: 100, width: 100,
className: 'debit', className: 'debit',
textOverview: true, textOverview: true,
align: 'right',
}, },
], ],
[], [],

View File

@@ -12,55 +12,58 @@ const initialState = {
name: 'Bigcapital, LLC', name: 'Bigcapital, LLC',
}, },
manualJournals: { manualJournals: {
tableSize: 'medium', tableSize: 'small',
}, },
bills: { bills: {
tableSize: 'medium', tableSize: 'small',
}, },
billPayments: { billPayments: {
tableSize: 'medium', tableSize: 'small',
}, },
paymentReceives: { paymentReceives: {
tableSize: 'medium', tableSize: 'small',
}, },
salesEstimates: { salesEstimates: {
tableSize: 'medium', tableSize: 'small',
}, },
items: { items: {
tableSize: 'medium', tableSize: 'small',
}, },
salesInvoices: { salesInvoices: {
tableSize: 'medium', tableSize: 'small',
}, },
salesReceipts: { salesReceipts: {
tableSize: 'medium', tableSize: 'small',
}, },
expenses: { expenses: {
tableSize: 'medium', tableSize: 'small',
}, },
customers: { customers: {
tableSize: 'medium', tableSize: 'small',
}, },
vendors: { vendors: {
tableSize: 'medium', tableSize: 'small',
}, },
accounts: { accounts: {
tableSize: 'medium', tableSize: 'small',
}, },
cashflowAccounts: { cashflowAccounts: {
tableSize: 'medium', tableSize: 'small',
}, },
cashflowTransactions: { cashflowTransactions: {
tableSize: 'medium', tableSize: 'small',
}, },
creditNote: { creditNote: {
tableSize: 'medium', tableSize: 'small',
}, },
vendorCredit: { vendorCredit: {
tableSize: 'medium', tableSize: 'small',
}, },
warehouseTransfer: { warehouseTransfer: {
tableSize: 'medium', tableSize: 'small',
},
projectTasks: {
tableSize: 'small',
}, },
projectTasks: { projectTasks: {
tableSize: 'medium', tableSize: 'medium',