Skip to content

Commit

Permalink
use overflow auto instead of scroll (#12)
Browse files Browse the repository at this point in the history
the old code causes the scrollbar to always be visible on some browsers;
setting it to auto ensures that if the content isn't too wide, the
scrollbar doesn't show
  • Loading branch information
jlaneve authored Oct 4, 2023
1 parent d6a4d4b commit dc42254
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/lib/components/custom/MessageCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
{/if}
</Card.Title>

<div class="pt-4 overflow-x-scroll">
<div class="pt-4 overflow-x-auto">
{#if isLoading}
<div class="flex flex-col gap-2">
<Skeleton class="w-full h-4" />
Expand Down

0 comments on commit dc42254

Please sign in to comment.