Skip to content

Commit

Permalink
📱 Feat(frontend): move navbar for responsive on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpiac committed Oct 19, 2023
1 parent 5ed1081 commit 719a8c0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion frontend/src/lib/components/chat/chat.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@
});
</script>

<div class="flex flex-col justify-between relative h-full">
<div class="flex flex-col justify-between relative flex-grow">
<div
bind:this={chatElement}
class="absolute top-0 bottom-[80px] left-0 right-0 overflow-y-scroll bg-background-primary dark:bg-background-secondary-dark">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@
<svelte:body use:watchResize={handleResize} />

<div
class="{widthClass} transition-all sticky flex flex-col h-[calc(100vh-60px)] top-0 overflow-y-hidden {$leftNavStore.isOpened
class="{widthClass} transition-all sticky flex flex-col h-screen top-0 overflow-y-hidden {$leftNavStore.isOpened
? 'border-r'
: ''} border-stroke-base dark:border-stroke-base-dark bg-background-secondary dark:bg-background-primary-dark">
<div
class="g-background-secondary dark:bg-background-primary-dark p-3 flex gap-3 items-center justify-between flex-shrink-0 border-b border-stroke-base dark:border-stroke-base-dark">
class="g-background-secondary dark:bg-background-primary-dark h-[60px] p-3 flex gap-3 items-center justify-between flex-shrink-0 border-b border-stroke-base dark:border-stroke-base-dark">
<Button fullWidth leftIcon={Plus} type="primary" on:click={handleNewChat} size="smaller"
>New chat</Button>
<Button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</script>

<div
class="shrink-0 bg-background-secondary dark:bg-background-primary-dark sticky top-0 flex justify-between items-center border-b border-stroke-base dark:border-stroke-base-dark h-[60px] z-20">
class="shrink-0 bg-background-secondary dark:bg-background-primary-dark sticky top-0 flex justify-between items-center border-b border-stroke-base dark:border-stroke-base-dark h-[60px] z-20 shrink-0">
<div class="pl-5 flex items-center gap-2">
<div class={$leftNavStore.isOpened ? "hidden" : "block"}>
<Button
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/routes/chat/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
<RealtimeContext>
<div
class="bg-background-primary dark:bg-background-primary-dark h-screen flex flex-col">
<TopNav />
<div class="flex flex-row flex-grow">
<LeftNav />
<div class="flex-grow">
<div class="flex-grow flex flex-col">
<TopNav />
<Chat />
<slot />
</div>
Expand Down

0 comments on commit 719a8c0

Please sign in to comment.