mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-12-05 15:52:55 +01:00
fix: no session search result overlap
This commit is contained in:
1 parent
e294f2e286
commit
16500793a5
1 file changed
+4
-13
@@ -8,7 +8,6 @@ import {
|
|||||||
import {
|
import {
|
||||||
AlertDialog,
|
AlertDialog,
|
||||||
Button,
|
Button,
|
||||||
Card,
|
|
||||||
DropdownMenu,
|
DropdownMenu,
|
||||||
Flex,
|
Flex,
|
||||||
Heading,
|
Heading,
|
||||||
@@ -110,7 +109,7 @@ export default function Page({
|
|||||||
const search = debounce(async () => {
|
const search = debounce(async () => {
|
||||||
if (!input.current) return;
|
if (!input.current) return;
|
||||||
|
|
||||||
setSearchResults(await searchPlayersAcrossRegions(input.current.value, 9));
|
setSearchResults(await searchPlayersAcrossRegions(input.current.value, 15));
|
||||||
setSearching(false);
|
setSearching(false);
|
||||||
}, 500);
|
}, 500);
|
||||||
|
|
||||||
@@ -269,17 +268,10 @@ export default function Page({
|
|||||||
<TextField.Slot>
|
<TextField.Slot>
|
||||||
<MagnifyingGlassIcon />
|
<MagnifyingGlassIcon />
|
||||||
</TextField.Slot>
|
</TextField.Slot>
|
||||||
|
</TextField.Root>
|
||||||
|
|
||||||
{showSearch && (
|
{showSearch && (
|
||||||
<Card
|
<Flex mt="2">
|
||||||
mt="2"
|
|
||||||
style={{
|
|
||||||
position: 'absolute',
|
|
||||||
top: '100%',
|
|
||||||
left: 0,
|
|
||||||
width: '100%',
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{searching && (
|
{searching && (
|
||||||
<Flex justify="center">
|
<Flex justify="center">
|
||||||
<Text color="gray">Searching...</Text>
|
<Text color="gray">Searching...</Text>
|
||||||
@@ -306,9 +298,8 @@ export default function Page({
|
|||||||
))}
|
))}
|
||||||
</Flex>
|
</Flex>
|
||||||
)}
|
)}
|
||||||
</Card>
|
</Flex>
|
||||||
)}
|
)}
|
||||||
</TextField.Root>
|
|
||||||
</Flex>
|
</Flex>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user