Manually set a zindex on the kbar so it shows above modals and header

This commit is contained in:
Jackson Harper
2023-03-07 11:44:12 +08:00
parent 746b396b96
commit dc99806a5e

View File

@ -19,13 +19,17 @@ import {
KBarSearch,
Priority,
} from 'kbar'
import { animatorStyle, KBarResultsComponents, searchStyle } from '../components/elements/KBar'
import {
animatorStyle,
KBarResultsComponents,
searchStyle,
} from '../components/elements/KBar'
import { darkenTheme, lightenTheme } from '../lib/themeUpdater'
TopBarProgress.config({
barColors: {
"0": '#FFD234',
"1.0": '#FFD234',
'0': '#FFD234',
'1.0': '#FFD234',
},
shadowBlur: 0,
barThickness: 2,
@ -99,7 +103,7 @@ function OmnivoreApp({ Component, pageProps }: AppProps): JSX.Element {
return (
<KBarProvider actions={generateActions(router)}>
<KBarPortal>
<KBarPositioner>
<KBarPositioner style={{ zIndex: 100 }}>
<KBarAnimator style={animatorStyle}>
<KBarSearch style={searchStyle} />
<KBarResultsComponents />