diff --git a/src/gadgets/BaseGadget.scss b/src/gadgets/BaseGadget.scss index 9e6dc19a..4fef150b 100644 --- a/src/gadgets/BaseGadget.scss +++ b/src/gadgets/BaseGadget.scss @@ -105,15 +105,15 @@ div.full-height { } } -@media screen and (min-width: 992px) { +@media screen and (min-width: 1200px) { div.half-width { width: calc(50% - 4px); } } -@media screen and (max-width: 992px) { +@media screen and (max-width: 1200px) { div.half-width { - width: 100%; + width: calc(100% - 6px); } } diff --git a/src/layouts/DefaultLayout/NavSideBar.js b/src/layouts/DefaultLayout/NavSideBar.js index 77029b0b..d6b0ca7a 100644 --- a/src/layouts/DefaultLayout/NavSideBar.js +++ b/src/layouts/DefaultLayout/NavSideBar.js @@ -59,7 +59,7 @@ function NavItem({ menu, pathname }) { return ( - + {menu.name} diff --git a/src/views/dashboard/AddGadget.js b/src/views/dashboard/AddGadget.js index d1ea673c..7088d272 100644 --- a/src/views/dashboard/AddGadget.js +++ b/src/views/dashboard/AddGadget.js @@ -64,19 +64,22 @@ async function getGadgetList() { const { $report } = inject('ReportService'); const reports = await $report.getReportsList(); - if (reports && reports.length) { - const list = reports.map(r => ({ - id: `${(r.advanced ? "AR" : (r.isNew ? "CR" : "SQ"))}:${r.id}:${r.queryName}`, - icon: "fa fa-filter", - name: r.queryName, - isOld: !(r.isNew || r.advanced), - details: (!r.advanced ? - `${r.outputCount} columns displayed in table format${r.isNew - ? ' with interactive option to sort and group based on columns.' - : ' (deprecated, not allowed to add to dashboard)'}` - : "") - })); - return [...GadgetList, ...list]; + if (!reports?.length) { + return GadgetList; } + + const list = reports.map(r => ({ + id: `${(r.advanced ? "AR" : (r.isNew ? "CR" : "SQ"))}:${r.id}:${r.queryName}`, + icon: "fa fa-filter", + name: r.queryName, + isOld: !(r.isNew || r.advanced), + details: (!r.advanced ? + `${r.outputCount} columns displayed in table format${r.isNew + ? ' with interactive option to sort and group based on columns.' + : ' (deprecated, not allowed to add to dashboard)'}` + : "") + })); + + return [...GadgetList, ...list]; } \ No newline at end of file diff --git a/src/views/dashboard/Dashboard.js b/src/views/dashboard/Dashboard.js index 4b53f73b..75e373dc 100644 --- a/src/views/dashboard/Dashboard.js +++ b/src/views/dashboard/Dashboard.js @@ -190,8 +190,8 @@ class Dashboard extends PureComponent { return ( <> - + {!this.isQuickView && }
{!this.isQuickView &&
}