From ba3fa43f4bce13340b6eea8d2dbd475f7cfb835e Mon Sep 17 00:00:00 2001 From: Faisal Amir Date: Thu, 30 May 2024 12:17:04 +0700 Subject: [PATCH 1/6] fix: wrong direction icon collapse right panel --- web/containers/Layout/TopPanel/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/containers/Layout/TopPanel/index.tsx b/web/containers/Layout/TopPanel/index.tsx index bd34f5858d..e2966e4dab 100644 --- a/web/containers/Layout/TopPanel/index.tsx +++ b/web/containers/Layout/TopPanel/index.tsx @@ -77,11 +77,11 @@ const TopPanel = () => { {showRightPanel ? ( ) : ( )} From 98be2e896033c5360eaddd83dcc31f7a1cb49183 Mon Sep 17 00:00:00 2001 From: Faisal Amir Date: Thu, 30 May 2024 12:30:15 +0700 Subject: [PATCH 2/6] fix: add back social icon --- web/containers/Layout/BottomPanel/index.tsx | 40 +++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/web/containers/Layout/BottomPanel/index.tsx b/web/containers/Layout/BottomPanel/index.tsx index 1c7439c817..cc0efd8056 100644 --- a/web/containers/Layout/BottomPanel/index.tsx +++ b/web/containers/Layout/BottomPanel/index.tsx @@ -1,5 +1,7 @@ +import { Button, Tooltip } from '@janhq/joi' import { useAtomValue } from 'jotai' +import { FaGithub, FaDiscord } from 'react-icons/fa' import { twMerge } from 'tailwind-merge' import DownloadingState from './DownloadingState' @@ -13,6 +15,19 @@ import UpdatedFailedModal from './UpdateFailedModal' import { appDownloadProgressAtom } from '@/helpers/atoms/App.atom' import { reduceTransparentAtom } from '@/helpers/atoms/Setting.atom' +const menuLinks = [ + { + name: 'Discord', + icon: , + link: 'https://discord.gg/FTk2MvZwJH', + }, + { + name: 'Github', + icon: , + link: 'https://github.com/janhq/jan', + }, +] + const BottomPanel = () => { const progress = useAtomValue(appDownloadProgressAtom) const reduceTransparent = useAtomValue(reduceTransparentAtom) @@ -41,6 +56,31 @@ const BottomPanel = () => { Jan v{VERSION ?? ''} +
+ {menuLinks + .filter((link) => !!link) + .map((link, i) => ( +
+ + + {link.icon} + + + } + content={link.name} + /> +
+ ))} +
) From c18d5e442199fef8025dd2a5356d2c0aeab6be6a Mon Sep 17 00:00:00 2001 From: Faisal Amir Date: Thu, 30 May 2024 15:03:54 +0700 Subject: [PATCH 3/6] fix: modal troubleshoot --- electron/utils/setup.ts | 2 +- joi/src/core/Modal/styles.scss | 1 + joi/src/core/ScrollArea/index.tsx | 8 +++-- web/app/layout.tsx | 2 +- web/containers/ModalTroubleShoot/AppLogs.tsx | 2 +- .../ModalTroubleShoot/DeviceSpecs.tsx | 2 +- web/containers/ModalTroubleShoot/index.tsx | 29 ++++++++----------- web/containers/ServerLogs/index.tsx | 2 +- web/screens/Settings/Appearance/index.tsx | 2 +- 9 files changed, 25 insertions(+), 25 deletions(-) diff --git a/electron/utils/setup.ts b/electron/utils/setup.ts index c536983512..437e21f977 100644 --- a/electron/utils/setup.ts +++ b/electron/utils/setup.ts @@ -2,7 +2,7 @@ import { app } from 'electron' import Store from 'electron-store' const DEFAULT_WIDTH = 1000 -const DEFAULT_HEIGHT = 700 +const DEFAULT_HEIGHT = 800 const storage = new Store() diff --git a/joi/src/core/Modal/styles.scss b/joi/src/core/Modal/styles.scss index 8baddaef27..755daaf3d7 100644 --- a/joi/src/core/Modal/styles.scss +++ b/joi/src/core/Modal/styles.scss @@ -16,6 +16,7 @@ fieldset, overflow: hidden; background-color: hsla(var(--modal-bg)); border-radius: 8px; + font-size: 14px; position: fixed; z-index: 300; top: 50%; diff --git a/joi/src/core/ScrollArea/index.tsx b/joi/src/core/ScrollArea/index.tsx index abe2adda9c..3a2ffaaa84 100644 --- a/joi/src/core/ScrollArea/index.tsx +++ b/joi/src/core/ScrollArea/index.tsx @@ -7,13 +7,17 @@ import './styles.scss' const ScrollArea = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef ->(({ className, children, ...props }, ref) => ( +>(({ className, children, onScroll, ...props }, ref) => ( - + {children} - +
{children} diff --git a/web/containers/ModalTroubleShoot/AppLogs.tsx b/web/containers/ModalTroubleShoot/AppLogs.tsx index f9e585ddeb..63b324e96d 100644 --- a/web/containers/ModalTroubleShoot/AppLogs.tsx +++ b/web/containers/ModalTroubleShoot/AppLogs.tsx @@ -27,7 +27,7 @@ const AppLogs = () => { return (
-
+