|
|
@ -161,7 +161,7 @@ export default function QuickLaunch({servicesAndBookmarks, searchString, setSear
|
|
|
|
)} type="text" autoCorrect="false" ref={searchField} value={searchString} onChange={handleSearchChange} onKeyDown={handleSearchKeyDown} />
|
|
|
|
)} type="text" autoCorrect="false" ref={searchField} value={searchString} onChange={handleSearchChange} onKeyDown={handleSearchKeyDown} />
|
|
|
|
{results.length > 0 && <ul className="max-h-[60vh] overflow-y-auto m-2">
|
|
|
|
{results.length > 0 && <ul className="max-h-[60vh] overflow-y-auto m-2">
|
|
|
|
{results.map((r, i) => (
|
|
|
|
{results.map((r, i) => (
|
|
|
|
<li key={r.container ?? r.app ?? r.name}>
|
|
|
|
<li key={r.container ?? r.app ?? `${r.name}-${r.href}`}>
|
|
|
|
<button type="button" data-index={i} onMouseEnter={handleItemHover} className={classNames(
|
|
|
|
<button type="button" data-index={i} onMouseEnter={handleItemHover} className={classNames(
|
|
|
|
"flex flex-row w-full items-center justify-between rounded-md text-sm md:text-xl py-2 px-4 cursor-pointer text-theme-700 dark:text-theme-200",
|
|
|
|
"flex flex-row w-full items-center justify-between rounded-md text-sm md:text-xl py-2 px-4 cursor-pointer text-theme-700 dark:text-theme-200",
|
|
|
|
i === currentItemIndex && "bg-theme-300/50 dark:bg-theme-700/50",
|
|
|
|
i === currentItemIndex && "bg-theme-300/50 dark:bg-theme-700/50",
|
|
|
|