interface: right position for engineSelector
This commit is contained in:
parent
09a7941eca
commit
b3255de375
@ -37,7 +37,9 @@ export default function Homepage() {
|
|||||||
return (
|
return (
|
||||||
<div className="h-full fixed overflow-hidden w-full bg-black">
|
<div className="h-full fixed overflow-hidden w-full bg-black">
|
||||||
<Time showSecond={settings.timeShowSecond} />
|
<Time showSecond={settings.timeShowSecond} />
|
||||||
<EngineSelector/>
|
<EngineSelector className="absolute top-20 lg:top-44 short:top-0 translate-x-[-50%] translate-y-[-0.2rem]
|
||||||
|
left-1/2 w-11/12 sm:w-[700px] text:black text-right
|
||||||
|
dark:text-white text-3xl text-shadow-lg z-10"/>
|
||||||
{colorScheme === "dark" && (
|
{colorScheme === "dark" && (
|
||||||
<Background src="rgb(23,25,29)" isFocus={isFocus} onClick={() => setFocus(false)} />
|
<Background src="rgb(23,25,29)" isFocus={isFocus} onClick={() => setFocus(false)} />
|
||||||
)}
|
)}
|
||||||
|
@ -7,7 +7,9 @@ import { useRecoilValue, useSetRecoilState } from "recoil";
|
|||||||
import { settingsState } from "../state/settings";
|
import { settingsState } from "../state/settings";
|
||||||
import { engineTranslation } from "./translatedEngineList";
|
import { engineTranslation } from "./translatedEngineList";
|
||||||
|
|
||||||
export default function () {
|
export default function(
|
||||||
|
props: { className: string }
|
||||||
|
) {
|
||||||
const t = useTranslations("Search");
|
const t = useTranslations("Search");
|
||||||
const settings: settings = useRecoilValue(settingsState);
|
const settings: settings = useRecoilValue(settingsState);
|
||||||
const items = settings.searchEngines;
|
const items = settings.searchEngines;
|
||||||
@ -43,7 +45,7 @@ export default function () {
|
|||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div className={props.className}>
|
||||||
{
|
{
|
||||||
isClient &&
|
isClient &&
|
||||||
(
|
(
|
||||||
@ -55,7 +57,7 @@ export default function () {
|
|||||||
</DropdownTrigger>
|
</DropdownTrigger>
|
||||||
<DropdownMenu
|
<DropdownMenu
|
||||||
aria-label={t("engine-aria")}
|
aria-label={t("engine-aria")}
|
||||||
variant="flat"
|
variant="light"
|
||||||
disallowEmptySelection
|
disallowEmptySelection
|
||||||
selectionMode="single"
|
selectionMode="single"
|
||||||
selectedKeys={selectedKeys}
|
selectedKeys={selectedKeys}
|
||||||
|
Loading…
Reference in New Issue
Block a user