File tree Expand file tree Collapse file tree 2 files changed +12
-9
lines changed
Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 4343
4444.DocSearch-Button-Keys {
4545 display : flex;
46+ width : calc (2 * 20px + 2 * 0.4em );
4647}
4748
4849.DocSearch-Button-Key {
Original file line number Diff line number Diff line change 1- import React , { useMemo } from 'react' ;
1+ import React , { Fragment , useMemo } from 'react' ;
22
33import { ControlKeyIcon } from './icons/ControlKeyIcon' ;
44import { SearchIcon } from './icons/SearchIcon' ;
@@ -47,14 +47,16 @@ export const DocSearchButton = React.forwardRef<
4747 < span className = "DocSearch-Button-Placeholder" > { buttonText } </ span >
4848 </ span >
4949
50- { key !== null && (
51- < span className = "DocSearch-Button-Keys" >
52- < span className = "DocSearch-Button-Key" >
53- { key === ACTION_KEY_DEFAULT ? < ControlKeyIcon /> : key }
54- </ span >
55- < span className = "DocSearch-Button-Key" > K</ span >
56- </ span >
57- ) }
50+ < span className = "DocSearch-Button-Keys" >
51+ { key !== null && (
52+ < Fragment >
53+ < span className = "DocSearch-Button-Key" >
54+ { key === ACTION_KEY_DEFAULT ? < ControlKeyIcon /> : key }
55+ </ span >
56+ < span className = "DocSearch-Button-Key" > K</ span >
57+ </ Fragment >
58+ ) }
59+ </ span >
5860 </ button >
5961 ) ;
6062} ) ;
You can’t perform that action at this time.
0 commit comments