Skip to content

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

Fix setup theme for mobile devices (#315)

Leendert de Borst55178006c863
diff --git a/src/AliasVault.Client/Auth/Pages/Setup/Setup.razor b/src/AliasVault.Client/Auth/Pages/Setup/Setup.razor
index 2ad0382eb..ec1e37f7c 100644
--- a/src/AliasVault.Client/Auth/Pages/Setup/Setup.razor
+++ b/src/AliasVault.Client/Auth/Pages/Setup/Setup.razor
@@ -4,10 +4,10 @@
@layout Auth.Layout.EmptyLayout
@attribute [AllowAnonymous]
-<div class="min-h-screen bg-gray-100 dark:bg-gray-900 flex items-center justify-center">
+<div class="min-h-screen bg-gray-100 dark:bg-gray-900 flex flex-col lg:items-center lg:justify-center">
<div class="w-full mx-auto lg:max-w-xl lg:bg-white lg:dark:bg-gray-800 lg:shadow-xl lg:rounded-lg lg:overflow-hidden flex flex-col">
<div class="flex flex-col flex-grow">
- <div class="flex-grow p-8 pb-0">
+ <div class="flex-grow p-6 pt-4 lg:pt-6 pb-28 lg:pb-4">
<div class="flex justify-between items-center mb-4">
<div>
<button @onclick="GoBack" class="text-gray-500 hover:text-gray-800 dark:text-gray-400 dark:hover:text-gray-200 @(_currentStep == SetupStep.Welcome ? "invisible" : "")">
@@ -55,7 +55,7 @@
break;
}
</div>
- <div class="p-8 bg-gray-100 dark:bg-gray-900 border-t border-gray-200 dark:border-gray-700 lg:bg-transparent lg:dark:bg-transparent lg:border-0 pb-safe">
+ <div class="fixed lg:relative bottom-0 left-0 right-0 p-4 bg-gray-100 dark:bg-gray-900 border-t border-gray-200 dark:border-gray-700 lg:bg-transparent lg:dark:bg-transparent lg:border-0">
@if (_currentStep == SetupStep.Password && !string.IsNullOrWhiteSpace(_setupData.Password))
{
<button @onclick="GoNext"
diff --git a/src/AliasVault.Client/Auth/Pages/Start.razor b/src/AliasVault.Client/Auth/Pages/Start.razor
index 354a2eb9e..a91226060 100644
--- a/src/AliasVault.Client/Auth/Pages/Start.razor
+++ b/src/AliasVault.Client/Auth/Pages/Start.razor
@@ -12,8 +12,8 @@
</div>
</div>
- <div class="w-full lg:w-1/2 flex items-center justify-center px-8 py-12">
- <div class="w-full max-w-xl p-6 space-y-4 sm:p-8">
+ <div class="w-full lg:w-1/2 flex items-center justify-center lg:px-8 lg:py-12">
+ <div class="w-full max-w-xl p-6 space-y-4">
<Logo />
<h2 class="text-3xl font-semibold text-gray-800 dark:text-gray-200 mb-6">
Password & Identity manager
diff --git a/src/AliasVault.Client/Properties/launchSettings.json b/src/AliasVault.Client/Properties/launchSettings.json
index 219ec72a3..5fa8f5583 100644
--- a/src/AliasVault.Client/Properties/launchSettings.json
+++ b/src/AliasVault.Client/Properties/launchSettings.json
@@ -34,7 +34,7 @@
"dotnetRunMessages": true,
"launchBrowser": true,
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
- "applicationUrl": "https://0.0.0.0:7103;http://0.0.0.0:5067",
+ "applicationUrl": "https://0.0.0.0:7103",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
diff --git a/src/AliasVault.Client/wwwroot/css/tailwind.css b/src/AliasVault.Client/wwwroot/css/tailwind.css
index dbb75af51..f55868ba1 100644
--- a/src/AliasVault.Client/wwwroot/css/tailwind.css
+++ b/src/AliasVault.Client/wwwroot/css/tailwind.css
@@ -1644,6 +1644,18 @@ video {
padding-top: 2rem;
}
+.pb-10 {
+ padding-bottom: 2.5rem;
+}
+
+.pb-20 {
+ padding-bottom: 5rem;
+}
+
+.pb-28 {
+ padding-bottom: 7rem;
+}
+
.text-left {
text-align: left;
}
@@ -2638,6 +2650,10 @@ video {
}
@media (min-width: 768px) {
+ .md\:relative {
+ position: relative;
+ }
+
.md\:col-span-1 {
grid-column: span 1 / span 1;
}
@@ -2686,6 +2702,10 @@ video {
position: fixed;
}
+ .lg\:relative {
+ position: relative;
+ }
+
.lg\:order-1 {
order: 1;
}
@@ -2722,6 +2742,14 @@ video {
margin-top: 0px;
}
+ .lg\:mb-4 {
+ margin-bottom: 1rem;
+ }
+
+ .lg\:mb-2 {
+ margin-bottom: 0.5rem;
+ }
+
.lg\:block {
display: block;
}
@@ -2758,6 +2786,14 @@ video {
flex-direction: row;
}
+ .lg\:items-center {
+ align-items: center;
+ }
+
+ .lg\:justify-center {
+ justify-content: center;
+ }
+
.lg\:gap-4 {
gap: 1rem;
}
@@ -2783,10 +2819,36 @@ video {
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
}
+ .lg\:px-8 {
+ padding-left: 2rem;
+ padding-right: 2rem;
+ }
+
+ .lg\:py-12 {
+ padding-top: 3rem;
+ padding-bottom: 3rem;
+ }
+
.lg\:pb-16 {
padding-bottom: 4rem;
}
+ .lg\:pb-0 {
+ padding-bottom: 0px;
+ }
+
+ .lg\:pb-4 {
+ padding-bottom: 1rem;
+ }
+
+ .lg\:pt-4 {
+ padding-top: 1rem;
+ }
+
+ .lg\:pt-6 {
+ padding-top: 1.5rem;
+ }
+
.lg\:shadow-none {
--tw-shadow: 0 0 #0000;
--tw-shadow-colored: 0 0 #0000;