Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Fix inline unlock confirm message (#945)

Leendert de Borst336bbafe273c
diff --git a/apps/browser-extension/src/assets/tailwind.css b/apps/browser-extension/src/assets/tailwind.css
index 9c7bb866c..ac68d2e2d 100644
--- a/apps/browser-extension/src/assets/tailwind.css
+++ b/apps/browser-extension/src/assets/tailwind.css
@@ -2,7 +2,7 @@
@tailwind components;
@tailwind utilities;
-@media (max-width: 400px) {
+@media (max-width: 380px) {
html, body {
width: 350px;
max-width: 350px;
diff --git a/apps/browser-extension/src/entrypoints/popup/context/NavigationContext.tsx b/apps/browser-extension/src/entrypoints/popup/context/NavigationContext.tsx
index 5fe9a986a..b59b20644 100644
--- a/apps/browser-extension/src/entrypoints/popup/context/NavigationContext.tsx
+++ b/apps/browser-extension/src/entrypoints/popup/context/NavigationContext.tsx
@@ -36,7 +36,6 @@ export const NavigationProvider: React.FC<{ children: React.ReactNode }> = ({ ch
const location = useLocation();
const navigate = useNavigate();
const [isInitialized, setIsInitialized] = useState(false);
- const [isInlineUnlockMode, setIsInlineUnlockMode] = useState(false);
const { setIsInitialLoading } = useLoading();
// Auth and DB state
@@ -45,7 +44,7 @@ export const NavigationProvider: React.FC<{ children: React.ReactNode }> = ({ ch
// Derived state
const isFullyInitialized = authInitialized && dbInitialized;
- const requiresAuth = isFullyInitialized && (!isLoggedIn || !dbAvailable || isInlineUnlockMode);
+ const requiresAuth = isFullyInitialized && (!isLoggedIn || !dbAvailable);
/**
* Store the current page path, timestamp, and navigation history in storage.
@@ -132,7 +131,6 @@ export const NavigationProvider: React.FC<{ children: React.ReactNode }> = ({ ch
// Check for inline unlock mode
const urlParams = new URLSearchParams(window.location.search);
const inlineUnlock = urlParams.get('mode') === 'inline_unlock';
- setIsInlineUnlockMode(inlineUnlock);
if (isFullyInitialized) {
setIsInitialLoading(false);
@@ -149,9 +147,9 @@ export const NavigationProvider: React.FC<{ children: React.ReactNode }> = ({ ch
navigate('/login', { replace: true });
} else if (!dbAvailable) {
navigate('/unlock', { replace: true });
- } else if (inlineUnlock) {
- navigate('/unlock-success', { replace: true });
}
+ } else if (inlineUnlock) {
+ navigate('/unlock-success', { replace: true });
} else if (!isInitialized) {
// First initialization, try to restore last page or go to credentials
restoreLastPage().then(() => {