fix: chart button width

This commit is contained in:
hamster1963
2024-12-02 23:07:01 +08:00
parent 8ef2d43d74
commit 59ec052374
3 changed files with 15 additions and 12 deletions

View File

@@ -134,7 +134,7 @@ export const NetworkChartClient = React.memo(function NetworkChart({
<button
key={key}
data-active={activeChart === key}
className={`relative z-30 flex cursor-pointer grow basis-0 min-w-[200px] flex-col justify-center gap-1 border-b border-neutral-200 dark:border-neutral-800 px-6 py-4 text-left data-[active=true]:bg-muted/50 sm:border-l sm:border-t-0 sm:px-6`}
className={`relative z-30 flex cursor-pointer grow basis-0 min-w-[100px] flex-col justify-center gap-1 border-b border-neutral-200 dark:border-neutral-800 px-6 py-4 text-left data-[active=true]:bg-muted/50 sm:border-l sm:border-t-0 sm:px-6`}
onClick={() => handleButtonClick(key)}
>
<span className="whitespace-nowrap text-xs text-muted-foreground">