Skip to content

Commit a174926

Browse files
committed
fix: alignment when not logged in of title bar
1 parent 3c9e3ed commit a174926

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/home/rendering/render-github-login-button.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { createClient } from "@supabase/supabase-js";
2-
import { toolbar } from "../ready-toolbar";
32
import { renderErrorInModal } from "./display-popup-modal";
43

54
declare const SUPABASE_URL: string; // @DEV: passed in at build time check build/esbuild-build.ts
@@ -50,12 +49,13 @@ export function renderAugmentAccessButton() {
5049

5150
const gitHubLoginButton = document.createElement("button");
5251
export function renderGitHubLoginButton() {
52+
const authentication = document.getElementById("authentication");
5353
gitHubLoginButton.id = "github-login-button";
5454
gitHubLoginButton.innerHTML = "<span>Login</span><span class='full'>&nbsp;With GitHub</span>";
5555
gitHubLoginButton.addEventListener("click", () => gitHubLoginButtonHandler());
56-
if (toolbar) {
57-
toolbar.appendChild(gitHubLoginButton);
58-
toolbar.classList.add("ready");
56+
if (authentication) {
57+
authentication.appendChild(gitHubLoginButton);
58+
authentication.classList.add("ready");
5959
}
6060
}
6161

static/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
><span
5858
><span class="full">Ubiquity DAO | </span><span class="mid">DevPool<input type="checkbox" id="view-toggle" disabled /></span></span></div></label
5959
><div id="filters" class="filters-container"></div
60-
></div>
60+
><div id="authentication"></div></div>
6161
<div id="bottom-bar" class="toolbar"
6262
><div id="filters-bottom" class="filters-container"></div><a href="https://dao.ubq.fi/devpool-flow" target="_blank"><button>FAQ</button></a></div
6363
>

0 commit comments

Comments
 (0)