Skip to content

Commit ede0fe3

Browse files
committed
change requests
1 parent e2e9b19 commit ede0fe3

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

app/[locale]/roadmap/tracks/_components/tracks.tsx

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ const RoadmapTracksPage = () => {
232232
View the tracks
233233
</div>
234234

235-
<div className="sticky top-1 z-50 mb-8 flex flex-col items-center pb-4 text-center md:top-24 md:px-2">
235+
<div className="sticky top-1 top-[70px] z-50 mb-8 flex flex-col items-center pb-4 text-center md:top-24 md:px-2">
236236
<nav className="z-50 mx-4 flex max-w-full gap-1 overflow-x-auto bg-background p-2 shadow md:max-w-[calc(100%-2rem)] md:rounded-2xl md:border md:p-0.5 md:shadow-lg">
237237
{tracks.map(({ key, title, icon }) => (
238238
<ButtonLink
@@ -391,13 +391,20 @@ const RoadmapTracksPage = () => {
391391
</Accordion>
392392
</div>
393393

394-
<Popover open={!!selectedNode}>
394+
<Popover
395+
open={!!selectedNode}
396+
onOpenChange={(open) => {
397+
if (!open) {
398+
setSelectedNode(null)
399+
}
400+
}}
401+
>
395402
<PopoverTrigger asChild>
396403
<div className="fixed right-4 top-24" />
397404
</PopoverTrigger>
398405
<PopoverContent
399406
className={cn(
400-
"mt-0 max-h-[calc(100vh-8rem)] min-h-64 w-64 overflow-scroll rounded-2xl border p-0 shadow-lg sm:w-72 md:mt-16 md:w-96",
407+
"mt-0 max-h-[calc(100vh-7rem)] min-h-64 w-64 overflow-scroll rounded-2xl border p-0 shadow-lg sm:w-72 md:w-96",
401408
popoverConfig[selectedNode?.type as keyof typeof popoverConfig]
402409
?.border
403410
)}
@@ -407,12 +414,12 @@ const RoadmapTracksPage = () => {
407414
>
408415
<div
409416
className={cn(
410-
"flex min-h-64 flex-col p-4 lg:p-8",
417+
"flex flex-col p-4 lg:p-8",
411418
popoverConfig[selectedNode?.type as keyof typeof popoverConfig]
412419
?.background
413420
)}
414421
>
415-
<div className="mb-2 flex flex-row justify-end">
422+
<div className="h sticky top-4 z-10 mb-2 w-full bg-inherit text-end">
416423
<Button
417424
variant="ghost"
418425
className="text-body-medium"

0 commit comments

Comments
 (0)