Skip to content

Commit 11244a5

Browse files
authored
refactor(kaliacad#238): add white background, border radius and padding to graph component (kaliacad#241)
fix kaliacad#238
1 parent 306f8ae commit 11244a5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/PageViews/ArticleViewsGraph.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ const ArticleViewsGraph = ({ articles }) => {
6060
}, [articles]);
6161

6262
return (
63-
<div className='graph w-full flex flex-col items-center'>
64-
<h2 className='font-bold text-white text-xl self-start'>Views for Multiple Articles</h2>
63+
<div className='graph w-full flex flex-col items-center p-4 bg-white border border-gray-300 rounded-md'>
64+
<h2 className='font-bold text-black text-xl self-start'>Views for Multiple Articles</h2>
6565
{loading ? (
6666
<Loading />
6767
) : viewData.labels ? (

src/pages/PageViews.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default function PageViews() {
3434
<OptionsForm />
3535
<div className='w-3/4'>
3636
<Pages />
37-
<ArticlesGraph />
37+
{pages.length === 0 ? <></> : <ArticlesGraph />}
3838
</div>
3939
</PageViewsContext.Provider>
4040
</div>

0 commit comments

Comments
 (0)