File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,8 @@ export default buildConfig({
6161 ] ,
6262 } ,
6363 dashboard : {
64- beforeDashboard : [ "topPages" , "viewsChart" ] ,
64+ beforeDashboard : [ "viewsChart" ] ,
65+ afterDashboard : [ "topPages" ] ,
6566 } ,
6667 globals : [
6768 {
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ const GlobalViewsChart: React.FC<Props> = ({}) => {
2525 "Content-Type" : "application/json" ,
2626 } ,
2727 body : JSON . stringify ( {
28- timeframe : "30d " ,
28+ timeframe : "currentMonth " ,
2929 metrics : [ "views" ] ,
3030 } ) ,
3131 } ) . then ( ( response ) => response . json ( ) ) ;
@@ -41,7 +41,7 @@ const GlobalViewsChart: React.FC<Props> = ({}) => {
4141 } , [ ] ) ;
4242
4343 const chartLabel = useMemo ( ( ) => {
44- return "Sitewide views " ;
44+ return "Views " ;
4545 } , [ ] ) ;
4646
4747 const primaryAxis = React . useMemo < AxisOptions < ChartDataPoint > > ( ( ) => {
@@ -69,6 +69,7 @@ const GlobalViewsChart: React.FC<Props> = ({}) => {
6969 < section
7070 style = { {
7171 marginBottom : "1.5rem" ,
72+ maxWidth : "70rem" ,
7273 } }
7374 >
7475 { chartData ?. length && chartData . length > 0 ? (
Original file line number Diff line number Diff line change @@ -42,8 +42,9 @@ const TopPages: React.FC<Props> = () => {
4242 marginBottom : "1.5rem" ,
4343 border : "1px solid" ,
4444 borderColor : "var(--theme-elevation-100)" ,
45- padding : "0.5rem " ,
45+ padding : "1rem " ,
4646 width : "100%" ,
47+ maxWidth : "70rem" ,
4748 } }
4849 >
4950 < h1 style = { { fontSize : "1.25rem" , marginBottom : "0.75rem" } } >
@@ -63,6 +64,7 @@ const TopPages: React.FC<Props> = () => {
6364 display : "flex" ,
6465 justifyContent : "space-between" ,
6566 width : "100%" ,
67+ marginBottom : "0.5rem" ,
6668 } }
6769 key = { itemIndex }
6870 >
You can’t perform that action at this time.
0 commit comments