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,
children
}) {
const initialSize = 180;
const initialSize = 220;
const [defaultSize, setDefaultSize] = useState(
parseInt(localStorage.getItem('dashboard-size'), 10) || initialSize,

View File

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

View File

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

View File

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