diff --git a/src/renderer/features/shared/components/search-input.tsx b/src/renderer/features/shared/components/search-input.tsx index 1633e99f8..e06b598e0 100644 --- a/src/renderer/features/shared/components/search-input.tsx +++ b/src/renderer/features/shared/components/search-input.tsx @@ -76,13 +76,14 @@ export const SearchInput = ({ const hasValue = props.value || ref.current?.value; const shouldShowInput = isInputMode || hasValue; + const shouldExpand = isInputMode || hasValue; const containerStyle: CSSProperties = { display: 'inline-flex', overflow: 'hidden', position: 'relative', transition: 'width 0.3s ease-in-out', - width: shouldShowInput ? '200px' : '40px', + width: shouldExpand ? '200px' : '36px', }; const buttonStyle: CSSProperties = {