fix broken padding

This commit is contained in:
Nate Kelley 2025-04-01 14:40:38 -06:00
parent e7a5b6817d
commit b417329554
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
5 changed files with 7 additions and 6 deletions

View File

@ -160,8 +160,6 @@ export const SidebarPrimary = React.memo(() => {
);
const FooterMemoized = useMemo(() => <SidebarUserFooter />, []);
console.log(currentRoute);
return (
<>
<Sidebar

View File

@ -44,6 +44,7 @@ export const PreventNavigation: React.FC<PreventNavigationProps> = React.memo(
* @param e The triggered event.
*/
const handleClick = useMemoizedFn((event: MouseEvent) => {
console.log('handleClick');
let target = event.target as HTMLElement;
let href: string | null = null;

View File

@ -6,7 +6,7 @@ import { motion } from 'framer-motion';
import { cn } from '@/lib/classMerge';
import { useEffect, useState, useLayoutEffect, useTransition } from 'react';
import { cva } from 'class-variance-authority';
import { useMemoizedFn, useMergedRefs, useSize, useThrottleFn } from '@/hooks';
import { useMemoizedFn, useMergedRefs, useSize, useThrottleFn, useWhyDidYouUpdate } from '@/hooks';
import { Tooltip } from '../tooltip/Tooltip';
import Link from 'next/link';
@ -123,8 +123,9 @@ export const AppSegmented: AppSegmentedComponent = React.memo(
const [isPending, startTransition] = useTransition();
const handleTabClick = useMemoizedFn((value: string) => {
console.log('handleTabClick called with:', value);
const item = options.find((item) => item.value === value);
if (item && !item.disabled) {
if (item && !item.disabled && value !== selectedValue) {
startTransition(() => {
setSelectedValue(item.value);
onChange?.(item);

View File

@ -100,7 +100,7 @@ export const MetricStylingApp: React.FC<{
<ScrollArea className="">
{segment === MetricStylingAppSegments.VISUALIZE && (
<StylingAppVisualize
className="mb-12 px-4 pt-3"
className="px-4 pt-3"
columnMetadata={columnMetadata}
rowCount={rowCount}
selectedChartType={selectedChartType}
@ -144,7 +144,7 @@ export const MetricStylingApp: React.FC<{
{segment === MetricStylingAppSegments.STYLING && (
<StylingAppStyling
className="mb-12 px-4"
className="px-4"
columnSettings={columnSettings}
showLegend={showLegend}
gridLines={gridLines}

View File

@ -13,6 +13,7 @@ export const MetricContainerHeaderSegment: React.FC<FileContainerSegmentProps> =
const metricId = useChatLayoutContextSelector((x) => x.metricId) || '';
const onChange = useMemoizedFn((fileView: SegmentedItem<FileView>) => {
console.log(fileView);
onSetFileView({ fileView: fileView.value });
});