fix: move sub-key notice inside account section

This commit is contained in:
M1 2026-03-18 12:04:40 +04:00
parent 988c43090b
commit 6d057d5797
1 changed files with 6 additions and 11 deletions

View File

@ -10,17 +10,6 @@
<h1 class="text-xl font-semibold text-white">Settings</h1>
<% if (it.isSubKey) { %>
<section class="bg-gray-900 rounded-xl border border-gray-800 p-6">
<div class="flex items-start gap-4">
<div class="flex-1">
<p class="text-sm font-semibold text-gray-200 mb-1">Signed in with a sub-key</p>
<p class="text-xs text-gray-500 leading-relaxed">Sub-keys can manage monitors but can't access account credentials. Sign in with your main account key to manage your login key, recovery email, and sub-keys.</p>
</div>
</div>
</section>
<% } %>
<!-- Account info -->
<section class="bg-gray-900 rounded-xl border border-gray-800 p-6">
<h2 class="text-sm font-semibold text-gray-300 mb-4">Account</h2>
@ -39,6 +28,12 @@
<label class="block text-xs text-gray-500 mb-1">Member since</label>
<p id="created-at" class="text-sm text-gray-400"><%= createdDate %></p>
</div>
<% if (it.isSubKey) { %>
<div class="pt-1 border-t border-gray-800 mt-1">
<p class="text-xs font-medium text-gray-400 mb-0.5">Signed in with a sub-key</p>
<p class="text-xs text-gray-600 leading-relaxed">Sub-keys can manage monitors but can't access account credentials. Sign in with your main account key to manage your login key, recovery email, and sub-keys.</p>
</div>
<% } %>
</div>
</section>