style: prettier on v1.4.25 W3 files

`pnpm format:check` flagged two files touched in the previous W3 +
W3b commits — `src/components/insights/insights-tab-strip.tsx` (the
new tab strip) and `src/lib/charts/x-axis-density.ts` (the rebuilt
tick-density helper). Prettier normalised the Tailwind class-name
ordering and the multi-line function signature; no behaviour change.
This commit is contained in:
Marc-André Bombeck committed 2026-05-14 12:07:23 +02:00
1 parent 26568c18a8
commit 80544b73cb
2 files changed
+4 -8

No files matched your search

@@ -149,7 +149,7 @@ export function InsightsTabStrip({
)}
>
<div className="flex items-center gap-2">
<div className="flex min-w-0 flex-1 gap-2 overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden">
<div className="flex min-w-0 flex-1 [scrollbar-width:none] gap-2 overflow-x-auto [&::-webkit-scrollbar]:hidden">
{SECTION_IDS.map((id) => {
const isActive = activeId === id;
return (
+3 -7
View File
@@ -79,10 +79,7 @@ const DESKTOP_BUCKETS: ReadonlyArray<TickBucket> = [
{ minPoints: 181, interval: 29 }, // 180+ days → monthly
];
function resolveBucket(
pointCount: number,
viewportWidth: number,
): TickBucket {
function resolveBucket(pointCount: number, viewportWidth: number): TickBucket {
const buckets =
viewportWidth < MOBILE_DESKTOP_BREAKPOINT_PX
? MOBILE_BUCKETS
@@ -116,9 +113,8 @@ export function chooseTickInterval(
viewportWidth: number,
): number {
if (!Number.isFinite(pointCount) || pointCount <= 0) return 0;
const safeViewport = Number.isFinite(viewportWidth) && viewportWidth > 0
? viewportWidth
: 1280;
const safeViewport =
Number.isFinite(viewportWidth) && viewportWidth > 0 ? viewportWidth : 1280;
const bucket = resolveBucket(pointCount, safeViewport);
return Math.max(0, bucket.interval);
}