fix: preserve dashboard heading flow
This commit is contained in:
@@ -5,6 +5,7 @@ import {
|
||||
Button,
|
||||
Card,
|
||||
MetricCard,
|
||||
PageScrollViewport,
|
||||
PageTitle,
|
||||
dashboardWidgetsForModules,
|
||||
hasAnyScope,
|
||||
@@ -73,7 +74,8 @@ export default function DashboardPage({ settings, auth }: { settings: ApiSetting
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="content-pad workspace-data-page dashboard-page">
|
||||
<PageScrollViewport className="dashboard-page">
|
||||
<div className="content-pad workspace-data-page">
|
||||
<div className="page-heading split workspace-heading">
|
||||
<div>
|
||||
<PageTitle>i18n:govoplan-dashboard.dashboard.3f8b4df2</PageTitle>
|
||||
@@ -127,7 +129,8 @@ export default function DashboardPage({ settings, auth }: { settings: ApiSetting
|
||||
)}
|
||||
</div>
|
||||
}
|
||||
</div>);
|
||||
</div>
|
||||
</PageScrollViewport>);
|
||||
}
|
||||
|
||||
function canUseWidget(auth: AuthInfo, widget: DashboardWidgetContribution): boolean {
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
.dashboard-page {
|
||||
height: 100%;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.dashboard-page .card + .dashboard-widget-grid {
|
||||
margin-top: 18px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user