diff --git a/web/src/components/ui/buttons/Button.tsx b/web/src/components/ui/buttons/Button.tsx index 7f2f57c5e..0d4c51cb0 100644 --- a/web/src/components/ui/buttons/Button.tsx +++ b/web/src/components/ui/buttons/Button.tsx @@ -36,7 +36,7 @@ const sizeVariants = { }; export const buttonVariants = cva( - 'inline-flex items-center overflow-hidden text-base justify-center gap-[5px] shadow rounded transition-all duration-300 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:cursor-not-allowed data-[loading=true]:cursor-progress', + 'inline-flex items-center overflow-hidden text-base justify-center gap-1.5 shadow rounded transition-all duration-300 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:cursor-not-allowed data-[loading=true]:cursor-progress', { variants: { variant: buttonTypeClasses, diff --git a/web/src/components/ui/streaming/StreamingMessageCode/StreamingMessageCode.tsx b/web/src/components/ui/streaming/StreamingMessageCode/StreamingMessageCode.tsx index 328d96ced..325247534 100644 --- a/web/src/components/ui/streaming/StreamingMessageCode/StreamingMessageCode.tsx +++ b/web/src/components/ui/streaming/StreamingMessageCode/StreamingMessageCode.tsx @@ -151,9 +151,9 @@ export const StreamingMessageCode: React.FC< const HiddenSection: React.FC<{ numberOfLinesUnmodified: number; }> = ({ numberOfLinesUnmodified }) => ( -
+
- + {`${numberOfLinesUnmodified} ${pluralize('line', numberOfLinesUnmodified)} unmodified`}
diff --git a/web/src/components/ui/tooltip/Popover.tsx b/web/src/components/ui/tooltip/Popover.tsx index 01166a68e..4d2153d3c 100644 --- a/web/src/components/ui/tooltip/Popover.tsx +++ b/web/src/components/ui/tooltip/Popover.tsx @@ -18,6 +18,7 @@ export interface PopoverProps footerContent?: string | React.ReactNode; trigger?: PopoverTriggerType; size?: PopoverContentVariant['size']; + sideOffset?: number; } export const Popover = React.memo( @@ -31,6 +32,7 @@ export const Popover = React.memo( trigger = 'click', size = 'default', footerContent, + sideOffset, ...props }) => { return ( @@ -43,6 +45,7 @@ export const Popover = React.memo( side={side} className={className} size={size} + sideOffset={sideOffset} headerContent={headerContent && } footerContent={footerContent && }> {content} diff --git a/web/src/controllers/MetricController/MetricViewChart/MetricChartEvaluation.tsx b/web/src/controllers/MetricController/MetricViewChart/MetricChartEvaluation.tsx index caee17f08..45f311e28 100644 --- a/web/src/controllers/MetricController/MetricViewChart/MetricChartEvaluation.tsx +++ b/web/src/controllers/MetricController/MetricViewChart/MetricChartEvaluation.tsx @@ -1,6 +1,10 @@ import type { IBusterMetric } from '@/api/asset_interfaces/metric'; import React, { useMemo } from 'react'; -import { CircleCheck, CircleWarning, CircleDotted } from '@/components/ui/icons'; +import { + CircleCheck, + CircleWarning, + TriangleWarning +} from '@/components/ui/icons/NucleoIconFilled'; import { Popover } from '@/components/ui/tooltip/Popover'; import { Button, type ButtonProps } from '@/components/ui/buttons'; @@ -17,7 +21,7 @@ export const MetricChartEvaluation: React.FC<{ const icon = useMemo(() => { if (evaluationScore === 'High') return ; - if (evaluationScore === 'Moderate') return ; + if (evaluationScore === 'Moderate') return ; if (evaluationScore === 'Low') return ; return ; }, [evaluationScore]); @@ -34,6 +38,7 @@ export const MetricChartEvaluation: React.FC<{ {evaluationSummary}
}>