File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/gitbook/src/components/Search Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -49,15 +49,15 @@ export const SearchInput = React.forwardRef<HTMLDivElement, SearchInputProps>(
4949 } , [ isOpen , value ] ) ;
5050
5151 return (
52- < div className = "relative flex @max-2xl:size-10 grow" >
52+ < div className = "relative flex @max-2xl:size-9.5 grow" >
5353 < Input
5454 data-testid = "search-input"
5555 name = "search-input"
5656 ref = { inputRef }
5757 containerRef = { containerRef as React . RefObject < HTMLDivElement | null > }
5858 sizing = "medium"
5959 label = { tString ( language , withAI ? 'search_or_ask' : 'search' ) }
60- className = "@max-2xl:absolute inset-y-0 right-0 z-30 @max-2xl:max-w-10 grow theme-bold:border-header-link/4 theme-bold:bg-header-background theme-bold:text-header-link theme-bold:shadow-none! @max-2xl:focus-within:w-56 @max-2xl:focus-within:max-w-[calc(100vw-5rem)] theme-bold:focus-within:border-header-link/6 theme-bold:focus-within:bg-header-link/1 theme-bold:focus-within:ring-header-link/5 theme-bold:hover:border-header-link/5 theme-bold:hover:bg-header-link/1 @max-2xl:has-[input[aria-expanded=true]]:w-56 @max-2xl:has-[input[aria-expanded=true]]:max-w-[calc(100vw-5rem)] @max-2xl:[&_input]:opacity-0 theme-bold:[&_input]:placeholder:text-header-link/8 @max-2xl:focus-within:[&_input]:opacity-11 @max-2xl:has-[input[aria-expanded=true]]:[&_input]:opacity-11 theme-bold:[&_svg]:text-header-link/8"
60+ className = "@max-2xl:absolute inset-y-0 right-0 z-30 @max-2xl:max-w-9.5 grow theme-bold:border-header-link/4 theme-bold:bg-header-background theme-bold:text-header-link theme-bold:shadow-none! @max-2xl:focus-within:w-56 @max-2xl:focus-within:max-w-[calc(100vw-5rem)] theme-bold:focus-within:border-header-link/6 theme-bold:focus-within:bg-header-link/1 theme-bold:focus-within:ring-header-link/5 theme-bold:hover:border-header-link/5 theme-bold:hover:bg-header-link/1 @max-2xl:has-[input[aria-expanded=true]]:w-56 @max-2xl:has-[input[aria-expanded=true]]:max-w-[calc(100vw-5rem)] @max-2xl:[&_input]:opacity-0 theme-bold:[&_input]:placeholder:text-header-link/8 @max-2xl:focus-within:[&_input]:opacity-11 @max-2xl:has-[input[aria-expanded=true]]:[&_input]:opacity-11 @max-2xl:[&_svg]:ml-0.5 theme-bold:[&_svg]:text-header-link/8"
6161 placeholder = { `${ tString ( language , withAI ? 'search_or_ask' : 'search' ) } …` }
6262 onFocus = { onFocus }
6363 onKeyDown = { onKeyDown }
You can’t perform that action at this time.
0 commit comments