Fix issue with homeserver button not being aligned

This commit is contained in:
Tracker-Friendly 2024-08-07 17:00:16 +01:00
parent 85630d87b5
commit 1b3714449b
8 changed files with 14 additions and 12 deletions

View File

@ -66,7 +66,7 @@
<button id="opButton" class="clickButton nonimportant">Create account</button>
<br><br>
<div style="display: flex;"><p class="hidden" id="homeserver">Your homeserver is loading... </p><div style="display: flex;flex-direction: column;justify-content: center;"><a class="hidden" href="/homeserver">Change</a></div></div>
<a class="iconbutton" title="Change homeserver" href="/homeserver/"><img src="/static/svg/server.svg" alt="Homeservers"></a><br><br>
<a class="iconbutton" title="Change homeserver" href="/homeserver/"><div class="vcenter"><img src="/static/svg/server.svg" alt="Homeservers"></div></a>
<a href="/privacy/">Privacy &amp; Terms</a>
</div>
</div>

View File

@ -35,7 +35,7 @@
<key>Precomposed</key>
<false/>
<key>URL</key>
<string>notes.hectabit.org/app</string>
<string>notes.canary.hectabit.org/app</string>
</dict>
</array>
<key>PayloadDescription</key>

View File

@ -146,6 +146,7 @@ body {
margin: 0;
background-color: var(--editor);
font-family: "Inter", sans-serif;
color: var(--text-color);
}
.hiddenButton {
@ -758,6 +759,7 @@ button:hover {
.inoutdiv .iconbutton img {
height: 20px;
filter: invert(var(--invertdm));
}
.inoutdiv .iconbutton:hover {

View File

@ -7,8 +7,8 @@ let backButton = document.getElementById("backButton")
let remote = localStorage.getItem("SETTING-homeServer")
if (remote == null) {
localStorage.setItem("SETTING-homeServer", "https://notes.hectabit.org")
remote = "https://notes.hectabit.org"
localStorage.setItem("SETTING-homeServer", "https://notes.canary.hectabit.org")
remote = "https://notes.canary.hectabit.org"
}
document.addEventListener("DOMContentLoaded", function() {

View File

@ -8,8 +8,8 @@ if (localStorage.getItem("PRIVATE-secretKey") !== null || localStorage.getItem("
let remote = localStorage.getItem("SETTING-homeServer")
if (remote == null) {
localStorage.setItem("SETTING-homeServer", "https://notes.hectabit.org")
remote = "https://notes.hectabit.org"
localStorage.setItem("SETTING-homeServer", "https://notes.canary.hectabit.org")
remote = "https://notes.canary.hectabit.org"
}
let inputContainer = document.getElementById("inputContainer")

View File

@ -15,8 +15,8 @@ if (secretKey === null || password === null) {
}
if (remote == null) {
localStorage.setItem("SETTING-homeServer", "https://notes.hectabit.org")
remote = "https://notes.hectabit.org"
localStorage.setItem("SETTING-homeServer", "https://notes.canary.hectabit.org")
remote = "https://notes.canary.hectabit.org"
}
function formatBytes(a, b = 2) {

View File

@ -10,8 +10,8 @@ if (secretKey === null || cryptoKey === null) {
let remote = localStorage.getItem("SETTING-homeServer")
if (remote == null) {
localStorage.setItem("SETTING-homeServer", "https://notes.hectabit.org")
remote = "https://notes.hectabit.org"
localStorage.setItem("SETTING-homeServer", "https://notes.canary.hectabit.org")
remote = "https://notes.canary.hectabit.org"
}
let notesPlainText = ""

View File

@ -8,8 +8,8 @@ if (localStorage.getItem("PRIVATE-secretKey") !== null || localStorage.getItem("
let remote = localStorage.getItem("SETTING-homeServer")
if (remote == null) {
localStorage.setItem("SETTING-homeServer", "https://notes.hectabit.org")
remote = "https://notes.hectabit.org"
localStorage.setItem("SETTING-homeServer", "https://notes.canary.hectabit.org")
remote = "https://notes.canary.hectabit.org"
}
let usernameBox = document.getElementById("usernameBox")