Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/assets/sass/plugins/sdk-sc-explorer/_modals.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

.#{$package-name} {
&-modal {
--modal-zindex: 1055;
--modal-zindex: 16;
--modal-width: 580px;
--modal-padding: 1rem;
--modal-margin: 0.5rem;
Expand Down
2 changes: 1 addition & 1 deletion src/assets/sass/plugins/sdk-sc-explorer/_tooltip.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}

.#{$package-name}-tooltip {
--tooltip-zindex: 1080;
--tooltip-zindex: 18;
--tooltip-max-width: 30rem;
--tooltip-padding-x: 0.5rem;
--tooltip-padding-y: 0.5rem;
Expand Down
17 changes: 16 additions & 1 deletion src/assets/sass/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,21 @@
-webkit-tap-highlight-color: transparent;
}

*::selection {
background: rgba(var(--neutral-300-rgb), 0.3);
}

// webkit being webkit
input {
color-scheme: dark;
font-feature-settings: 'calt' 0;
}
input:is(:-webkit-autofill, :-webkit-autofill:focus) {
transition:
background-color 600000s 0s,
color 600000s 0s;
}

html {
font-size: 16px;
}
Expand Down Expand Up @@ -83,7 +98,7 @@ body {
}

.modal-backdrop {
--backdrop-zindex: 1050;
--backdrop-zindex: 15;
--backdrop-bg: var(--background);
--backdrop-opacity: 0.75;
position: fixed;
Expand Down
13 changes: 11 additions & 2 deletions src/pages/Unlock/Unlock.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useEffect } from 'react';
import { useLocation, useNavigate } from 'react-router-dom';
import { UnlockPanelManager, useGetLoginInfo } from 'lib';
import { ProviderTypeEnum, UnlockPanelManager, useGetLoginInfo } from 'lib';
import { routeNames } from 'routes';

export const Unlock = () => {
Expand All @@ -12,13 +12,22 @@ export const Unlock = () => {
const callbackRoute = callbackURL ?? routeNames.home.concat(search);
const { isLoggedIn } = useGetLoginInfo();

const allowedProviders = [
ProviderTypeEnum.ledger,
ProviderTypeEnum.webview,
ProviderTypeEnum.extension,
ProviderTypeEnum.crossWindow,
ProviderTypeEnum.walletConnect
];

const unlockPanelManager = UnlockPanelManager.init({
loginHandler: () => {
navigate(callbackRoute);
},
onClose: () => {
navigate(routeNames.home);
}
},
allowedProviders
});

const handleOpenUnlockPanel = () => {
Expand Down
Loading