diff --git a/components/har-waterfall/HarWaterfall.tsx b/components/har-waterfall/HarWaterfall.tsx index 9288a52..9fa9ab9 100644 --- a/components/har-waterfall/HarWaterfall.tsx +++ b/components/har-waterfall/HarWaterfall.tsx @@ -120,6 +120,9 @@ const typeMetaMap: Record = { }, }; +const clamp = (value: number, min: number, max: number) => + Math.min(Math.max(value, min), max); + export const HarWaterfall: React.FC = ({ entries, activeFilter, @@ -259,9 +262,6 @@ export const HarWaterfall: React.FC = ({ return `${parts.join(", ")}. Total ${formatDuration(timing.totalTime)}.`; }; - const clamp = (value: number, min: number, max: number) => - Math.min(Math.max(value, min), max); - const scheduleHoverUpdate = useCallback( ( listX: number, @@ -489,24 +489,22 @@ export const HarWaterfall: React.FC = ({ "hover:bg-muted/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-foreground/20" )} > -
-
-
- - - {entry.response.status} - -
+
+
+ + + {entry.response.status} + {entry.request.method} @@ -526,17 +524,17 @@ export const HarWaterfall: React.FC = ({ - + {typeMeta.label} @@ -558,34 +556,36 @@ export const HarWaterfall: React.FC = ({
-
- {searchQuery ? ( - - ) : ( - url.hostname - )} -
-
- + <> +
{searchQuery ? ( ) : ( - displayPath + url.hostname )} - - {searchQuery && matchInfo.hasMatch && ( - - )} -
+
+
+ + {searchQuery ? ( + + ) : ( + displayPath + )} + + {searchQuery && matchInfo.hasMatch && ( + + )} +
+
@@ -599,9 +599,9 @@ export const HarWaterfall: React.FC = ({ key={`${segment.key}-${index}`} className={cn( "absolute h-full", - segmentIndex === 0 && "rounded-l-full", + segmentIndex === 0 && "rounded-l-[3px]", segmentIndex === lastSegmentIndex && - "rounded-r-full" + "rounded-r-[3px]" )} style={{ left: `${segment.left}%`,