mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-21 07:10:33 +00:00
fix: change the default sidebar width of the dashboard.
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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
|
||||||
// ---------------
|
// ---------------
|
||||||
|
|||||||
@@ -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',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[],
|
[],
|
||||||
|
|||||||
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user