aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/src
diff options
context:
space:
mode:
authorAnderson Shindy Oki <[email protected]>2024-10-31 12:41:10 +0900
committerAnderson Shindy Oki <[email protected]>2024-10-31 12:41:14 +0900
commit0d6344859b56a533c22df3bfc36a00fbe66c2873 (patch)
tree637c7c8ed71d377924b45c328e50cc9649e1390e /frontend/src
parent5272e70372e0d53bce1df5ab7997bf92f420cc29 (diff)
downloadbazarr-0d6344859b56a533c22df3bfc36a00fbe66c2873.tar.gz
bazarr-0d6344859b56a533c22df3bfc36a00fbe66c2873.zip
Adjusted search result stylesv1.4.6-beta.16
Diffstat (limited to 'frontend/src')
-rw-r--r--frontend/src/App/Header.tsx16
-rw-r--r--frontend/src/components/Search.tsx15
2 files changed, 19 insertions, 12 deletions
diff --git a/frontend/src/App/Header.tsx b/frontend/src/App/Header.tsx
index 29c1d1a8d..987218ef8 100644
--- a/frontend/src/App/Header.tsx
+++ b/frontend/src/App/Header.tsx
@@ -39,20 +39,20 @@ const AppHeader: FunctionComponent = () => {
<AppShell.Header p="md" className={styles.header}>
<Group justify="space-between" wrap="nowrap">
<Group wrap="nowrap">
- <Anchor onClick={goHome} visibleFrom="sm">
- <Avatar
- alt="brand"
- size={32}
- src={`${Environment.baseUrl}/images/logo64.png`}
- ></Avatar>
- </Anchor>
<Burger
opened={showed}
onClick={() => show(!showed)}
size="sm"
hiddenFrom="sm"
></Burger>
- <Badge size="lg" radius="sm" variant="brand">
+ <Anchor onClick={goHome}>
+ <Avatar
+ alt="brand"
+ size={32}
+ src={`${Environment.baseUrl}/images/logo64.png`}
+ ></Avatar>
+ </Anchor>
+ <Badge size="lg" radius="sm" variant="brand" visibleFrom="sm">
Bazarr
</Badge>
</Group>
diff --git a/frontend/src/components/Search.tsx b/frontend/src/components/Search.tsx
index 9571d9f2b..d1c559be5 100644
--- a/frontend/src/components/Search.tsx
+++ b/frontend/src/components/Search.tsx
@@ -2,11 +2,14 @@ import { FunctionComponent, useMemo, useState } from "react";
import { useNavigate } from "react-router-dom";
import {
ComboboxItem,
+ em,
+ Flex,
Image,
OptionsFilter,
Select,
Text,
} from "@mantine/core";
+import { useMediaQuery } from "@mantine/hooks";
import { faSearch } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { useServerSearch } from "@/apis/hooks";
@@ -85,6 +88,8 @@ const Search: FunctionComponent = () => {
const results = useSearch(query);
+ const isMobile = useMediaQuery(`(max-width: ${em(750)})`);
+
return (
<Select
placeholder="Search"
@@ -109,10 +114,12 @@ const Search: FunctionComponent = () => {
const result = results.find((r) => r.value === input.option.value);
return (
- <>
- <Image src={result?.poster} w={35} h={50} />
- <Text p="xs">{result?.label}</Text>
- </>
+ <Flex>
+ <Image src={result?.poster} w={55} h={70} />
+ <Text size={isMobile ? "xs" : "md"} pl="xs" pr="xs" lineClamp={3}>
+ {result?.label}
+ </Text>
+ </Flex>
);
}}
/>