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