Skip to content

Commit

Permalink
Set larger clickable area for Version info logo
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Nechaev authored and sergeynechaev committed Mar 9, 2023
1 parent a253ed3 commit 1791584
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/app/Marine2/components/ui/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import VersionInfo from "../VersionInfo"

const Footer = () => {
return (
<div className="flex w-full flex-row justify-between pt-6 pb-4">
<div className="flex w-full flex-row justify-between pt-2 pb-4">
<VersionInfo />
<Settings />
</div>
Expand Down
14 changes: 8 additions & 6 deletions src/app/Marine2/components/ui/VersionInfo/VersionInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@ const VersionInfo = () => {
appViewsStore.setView(AppViews.DIAGNOSTICS)
}

const toggleVersionInfo = () => {
setIsModalOpen(!isModalOpen)
}

return (
<div className="cursor-pointer pl-4">
<button onClick={() => setIsModalOpen(!isModalOpen)}>
{/* todo: fix types for svg */}
{/* @ts-ignore */}
<LogoIcon className={"w-32 text-black dark:text-white"} alt={"Victron Energy"} />
</button>
<div className="cursor-pointer py-3 px-5 outline-none" onClick={toggleVersionInfo}>
{/* todo: fix types for svg */}
{/* @ts-ignore */}
<LogoIcon className={"w-32 text-black dark:text-white"} alt={"Victron Energy"} />
<div className="flex justify-center items-center w-full">
<Modal.Frame
open={isModalOpen}
Expand Down

0 comments on commit 1791584

Please sign in to comment.