Skip to content

Commit

Permalink
[update] fixing a UI bug on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
Animenosekai committed Jun 6, 2022
1 parent 7288f2b commit 554712f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions website/components/ui/modals/hamburger.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ import Link from "next/link";
import { useLanguage } from "contexts/language";

export const HamburgerMenuElement = ({ href, name, ...props }: any) => {
return <div className="w-full h-16 p-5 text-xl items-center flex cursor-pointer hover:bg-slate-100 transition" {...props}>
<Link href={href}>
return <Link href={href}>
<div className="w-full h-16 p-5 text-xl items-center flex cursor-pointer hover:bg-slate-100 transition" {...props}>
{name}
</Link>
</div>
</div>
</Link>
}

export const HamburgerModal = ({ onClose, ...props }) => {
const { strings } = useLanguage();
return <div className="h-screen animate-enter-menu w-4/5 z-10 right-0 absolute bg-white shadow-xl flex flex-col space-y-5 items-center sm:hidden">
return <div className="h-screen animate-enter-menu w-4/5 z-10 right-0 fixed bg-white shadow-xl flex flex-col space-y-5 items-center sm:hidden">
<CloseIcon className="absolute top-0 right-0 mx-10 cursor-pointer opacity-60 hover:opacity-100 transition" onClick={() => { onClose(); }} />
{/* <span className="text-xl justify-center">Menu</span> */}
<div className="h-5"></div>
Expand Down
2 changes: 1 addition & 1 deletion website/pages/translate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const Translate: NextPage = () => {
<meta name="description" content="Use multiple services to translate your texts!" />
<link rel="icon" href="/favicon.ico" />
</Head>
<div className="p-16">
<div className="sm:p-16 p-5">
{
(results.length > 0 && results[0].success)
? <MainResult onNewTranslation={setCurrentTranslation} result={results[0]} />
Expand Down

1 comment on commit 554712f

@vercel
Copy link

@vercel vercel bot commented on 554712f Jun 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.