Skip to content

Commit c5df0ac

Browse files
chore: fixed top navigation
1 parent 7ec97de commit c5df0ac

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

app/components/charts/SunburstChart.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ const SunburstChart = (props: SunburstElementProps) => {
7979
.onHover((node: any) => {
8080
setSelectedNode(node);
8181
})
82+
.width(800)
8283
.tooltipContent((d: any, node: any) => `Size: <i>${node.value}</i>`)(
8384
chartRef.current
8485
);
@@ -91,7 +92,7 @@ const SunburstChart = (props: SunburstElementProps) => {
9192
}
9293
}, [selectedNode]);
9394

94-
return <div ref={chartRef}></div>;
95+
return <div ref={chartRef} className="max-w-[800px] z-0"></div>;
9596
};
9697

9798
export default SunburstChart;

app/components/navigation/TopNavigation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const TopNavigation: React.FC<Props> = ({
3535

3636
return (
3737
<>
38-
<div className="flex justify-between items-center border border-top-nav-border rounded w-28 h-9 p-2 bg-primary">
38+
<div className="flex justify-between items-center border border-top-nav-border rounded w-28 h-9 p-2 bg-primary z-[9999]">
3939
<IconButton className="!p-0" onClick={() => {}}>
4040
<HelpOutlineOutlinedIcon className="w-5 h-5 !fill-white cursor-pointer" />
4141
</IconButton>

app/routes/_index.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,14 @@ export default function Index() {
6262
<div className="min-h-screen flex flex-col justify-between relative">
6363
<div className="absolute left-0 top-0 sm:ml-auto sm:mr-auto sm:left-0 sm:right-0">
6464
<HeaderIcon className="ml-4 mt-4" />
65-
<div className="hidden sm:block absolute right-0 top-0 mt-4 mr-4">
66-
<TopNavigation
67-
newNotifications={newNotifications}
68-
notifications={notifications}
69-
/>
70-
</div>
7165
</div>
72-
{!jsonData ? <Loader /> : <SunburstChart data={jsonData} />}
66+
<div className="hidden sm:block absolute right-0 top-0 mt-4 mr-4">
67+
<TopNavigation
68+
newNotifications={newNotifications}
69+
notifications={notifications}
70+
/>
71+
</div>
72+
{!jsonData ? <Loader /> : <div className="min-h-screen flex flex-col justify-between items-center"><SunburstChart data={jsonData} /></div>}
7373
<div className="hidden sm:block absolute bottom-0 left-0 mb-4 ml-4">
7474
<Breadcrumb
7575
path={["Data and Simulation Generation", "Customer Segmentation"]}

0 commit comments

Comments
 (0)