Skip to content

Commit

Permalink
Remove right margin from custom scrollbar (huggingface#1498)
Browse files Browse the repository at this point in the history
Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>
  • Loading branch information
rotemdan and nsarrazin authored Oct 1, 2024
1 parent 9f0589d commit fe1bd37
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/chat/ChatWindow.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@
/>
{/if}
<div
class="scrollbar-custom mr-1 h-full overflow-y-auto"
class="scrollbar-custom h-full overflow-y-auto"
use:snapScrollToBottom={messages.length ? [...messages] : false}
bind:this={chatContainer}
>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/assistants/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
{/if}
</svelte:head>

<div class="scrollbar-custom mr-1 h-full overflow-y-auto py-12 max-sm:pt-8 md:py-24">
<div class="scrollbar-custom h-full overflow-y-auto py-12 max-sm:pt-8 md:py-24">
<div class="pt-42 mx-auto flex flex-col px-5 xl:w-[60rem] 2xl:w-[64rem]">
<div class="flex items-center">
<h1 class="text-2xl font-bold">Assistants</h1>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/models/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
{/if}
</svelte:head>

<div class="scrollbar-custom mr-1 h-full overflow-y-auto py-12 max-sm:pt-8 md:py-24">
<div class="scrollbar-custom h-full overflow-y-auto py-12 max-sm:pt-8 md:py-24">
<div class="pt-42 mx-auto flex flex-col px-5 xl:w-[60rem] 2xl:w-[64rem]">
<div class="flex items-center">
<h1 class="text-2xl font-bold">Models</h1>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/tools/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
};
</script>

<div class="scrollbar-custom mr-1 h-full overflow-y-auto py-12 max-sm:pt-8 md:py-24">
<div class="scrollbar-custom h-full overflow-y-auto py-12 max-sm:pt-8 md:py-24">
<div class="pt-42 mx-auto flex flex-col px-5 xl:w-[60rem] 2xl:w-[64rem]">
<div class="flex items-center">
<h1 class="text-2xl font-bold">Tools</h1>
Expand Down

0 comments on commit fe1bd37

Please sign in to comment.