Skip to content

Commit e8ff46f

Browse files
committed
fix external token
1 parent bf006f1 commit e8ff46f

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

src/routes/(home)/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
<Col sm="8">
4343
{#if showHomeImage}
4444
<div class="maintenance-img" transition:fade={{ delay: 300, duration: 500 }}>
45-
<img src={PUBLIC_HOME_IMAGE} alt="" style="width: 25vw;" />
45+
<img src={PUBLIC_HOME_IMAGE} alt="" style="max-width: 25vw;" />
4646
</div>
4747
{/if}
4848
</Col>

src/routes/chat/[agentId]/+page.svelte

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@
1919
2020
onMount(async () => {
2121
let user = getUserStore();
22-
if (user.token) {
23-
console.log("login as existing account.");
24-
} else if($page.url.searchParams.has('token')) {
22+
if ($page.url.searchParams.has('token')) {
2523
let token = $page.url.searchParams.get('token');
24+
console.log("login as explicit token in query.");
2625
await setToken(token);
26+
} else if (user.token) {
27+
console.log("login as existing account.");
2728
} else {
2829
await getToken("[email protected]", "123456", () => {
2930
console.log("login as guest.");

src/routes/chat/[agentId]/[conversationId]/chat-box.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1026,7 +1026,7 @@
10261026
</Dropdown>
10271027
{/if}
10281028
{:else}
1029-
<div class="cicon-wrap">
1029+
<div class="cicon-wrap align-content-end">
10301030
{#if message.sender.role == UserRole.Client}
10311031
<img src="images/users/user-dummy.jpg" class="rounded-circle avatar-xs" alt="avatar">
10321032
{:else}

0 commit comments

Comments
 (0)