diff --git a/packages/next/src/client/components/react-dev-overlay/ui/components/errors/dev-tools-indicator/next-logo.tsx b/packages/next/src/client/components/react-dev-overlay/ui/components/errors/dev-tools-indicator/next-logo.tsx index a12500c71eaec..9e5b0711dfd90 100644 --- a/packages/next/src/client/components/react-dev-overlay/ui/components/errors/dev-tools-indicator/next-logo.tsx +++ b/packages/next/src/client/components/react-dev-overlay/ui/components/errors/dev-tools-indicator/next-logo.tsx @@ -77,6 +77,7 @@ export const NextLogo = forwardRef(function NextLogo( shouldSkip: (count) => count === 0, animationDuration: SHORT_DURATION_MS, }) + const [dismissed, setDismissed] = useState(false) const triggerRef = useRef(null) const ref = useRef(null) @@ -90,6 +91,8 @@ export const NextLogo = forwardRef(function NextLogo( setIsErrorExpanded(hasError) }, [hasError]) + const isExpanded = isErrorExpanded || disabled + return (
@@ -226,9 +230,7 @@ export const NextLogo = forwardRef(function NextLogo( gap: 2px; align-items: center; padding-left: 8px; - padding-right: ${disabled || isBuildError - ? '8px' - : 'calc(2px * 2)'}; + padding-right: ${isBuildError ? '8px' : 'calc(2px * 2)'}; height: var(--size-32); margin: 0 2px; border-radius: var(--rounded-full); @@ -422,7 +424,7 @@ export const NextLogo = forwardRef(function NextLogo(
SIZE_PX ? width : SIZE, @@ -441,7 +443,7 @@ export const NextLogo = forwardRef(function NextLogo( )} - {isErrorExpanded && ( + {isExpanded && (
- {!disabled && !isBuildError && ( + {!isBuildError && (