Reach out to us at
hello@tor.us
or
diff --git a/demo/vue-app-new/src/style.css b/demo/vue-app-new/src/style.css
index b5c61c956..912d29c9f 100644
--- a/demo/vue-app-new/src/style.css
+++ b/demo/vue-app-new/src/style.css
@@ -1,3 +1,10 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
+
+body {
+ @apply h-dvh min-h-dvh w-full flex flex-col;
+}
+ #app {
+ @apply h-full w-full;
+ }
diff --git a/packages/ui/src/components/ExternalWallet/ExternalWalletInstall.tsx b/packages/ui/src/components/ExternalWallet/ExternalWalletInstall.tsx
index a93dd62cf..7241d431a 100644
--- a/packages/ui/src/components/ExternalWallet/ExternalWalletInstall.tsx
+++ b/packages/ui/src/components/ExternalWallet/ExternalWalletInstall.tsx
@@ -65,12 +65,14 @@ export default function ExternalWalletInstall(props: ExternalWalletInstallProps)
const { connectButton, goBack, closeModal } = props;
const [t] = useTranslation(undefined, { i18n });
- const deviceDetails = useMemo<{ platform: platform; browser: browser; os: mobileOs }>(() => {
+ const deviceDetails = useMemo<{ platform: platform; browser: browser; os: mobileOs; logoLight: string; logoDark: string }>(() => {
const browser = Bowser.getParser(window.navigator.userAgent);
return {
platform: browser.getPlatformType() as platform,
browser: browser.getBrowserName().toLowerCase() as browser,
os: browser.getOSName() as mobileOs,
+ logoLight: `${browser.getBrowserName().toLowerCase()}-light`,
+ logoDark: `${browser.getBrowserName().toLowerCase()}-dark`,
};
}, []);
@@ -82,12 +84,22 @@ export default function ExternalWalletInstall(props: ExternalWalletInstallProps)
if (!appId) return acc;
const appUrl = getMobileInstallLink(os as mobileOs, appId);
if (!appUrl) return acc;
+ const logoLight = `${os}-light`;
+ const logoDark = `${os}-dark`;
acc.push(
-
@@ -106,9 +118,19 @@ export default function ExternalWalletInstall(props: ExternalWalletInstallProps)
const installLink = browserExtensionUrl ? (
-
-
- {t("modal.external.install-browser-extension", { browser: getBrowserName(deviceDetails.browser) })}
+
+
+
+ {t("modal.external.install-browser-extension", { browser: getBrowserName(deviceDetails.browser) })}
+
diff --git a/packages/ui/src/components/Image.tsx b/packages/ui/src/components/Image.tsx
index d35d0651a..81b40ce9d 100644
--- a/packages/ui/src/components/Image.tsx
+++ b/packages/ui/src/components/Image.tsx
@@ -1,3 +1,7 @@
+import { useContext } from "react";
+
+import { ThemedContext } from "../context/ThemeContext";
+
export interface ImageProps {
hoverImageId?: string;
imageId: string;
@@ -6,13 +10,30 @@ export interface ImageProps {
width?: string;
fallbackImageId?: string;
extension?: string;
+ darkImageId?: string;
+ darkHoverImageId?: string;
}
export default function Image(props: ImageProps) {
- const { hoverImageId, imageId, isButton = false, height = "auto", width = "auto", fallbackImageId, extension = "svg" } = props;
+ const {
+ hoverImageId,
+ darkHoverImageId,
+ imageId,
+ darkImageId,
+ isButton = false,
+ height = "auto",
+ width = "auto",
+ fallbackImageId,
+ extension = "svg",
+ } = props;
+ const { isDark } = useContext(ThemedContext);
+
+ const imgName = isDark && darkImageId ? darkImageId : imageId;
+ const hoverImgName = isDark && darkHoverImageId ? darkHoverImageId : hoverImageId;
+
return (
<>
{isButton ? (
{modalState.status !== MODAL_STATUS.INITIALIZED ? (
diff --git a/packages/ui/src/css/web3auth.css b/packages/ui/src/css/web3auth.css
index 65570570b..381bf31f5 100644
--- a/packages/ui/src/css/web3auth.css
+++ b/packages/ui/src/css/web3auth.css
@@ -267,7 +267,7 @@
/* Adapter List */
#w3a-modal div.w3a-adapter-list-container {
- height: 380px;
+ height: 362px;
scrollbar-width: none;
overflow-y: auto;
}
@@ -341,7 +341,7 @@
}
#w3a-modal .w3a-wallet-connect {
- @apply block mb-4 text-center;
+ @apply block mb-2.5 text-center;
}
#w3a-modal .w3a-wallet-connect.w3a-wallet-connect--hidden {
@@ -349,7 +349,7 @@
}
#w3a-modal .w3a-wallet-connect__container {
- @apply bg-app-white dark:bg-app-gray-800 rounded-[10px] text-app-gray-500 dark:text-app-gray-400 text-xxs w-fit mx-auto min-w-[250px] py-4;
+ @apply bg-app-white dark:bg-app-gray-800 rounded-[10px] text-app-gray-500 dark:text-app-gray-400 text-xxs w-fit mx-auto min-w-[250px] py-2.5;
}
#w3a-modal .w3a-wallet-connect__container-desktop,
@@ -678,6 +678,18 @@
@apply !bg-app-gray-100 hover:!bg-app-gray-200 dark:!bg-app-gray-700 dark:hover:bg-app-gray-800;
}
+.wallet-link-btn {
+ @apply dark:!bg-app-gray-700 dark:hover:!bg-app-gray-700 !text-app-gray-900 dark:!text-app-white;
+}
+
+.wallet-link-btn img {
+ @apply w-7 h-7;
+}
+
+.wallet-adapter-container {
+ @apply h-[551px];
+}
+
@keyframes beat1 {
0% {
transform: scale(0);