fix: the Workspace section links scroll sideways with the mouse wheel (#34352)

This commit is contained in:
G30 authored and GitHub committed 2026-11-13 17:52:18 +09:00
1 parent 44ebf9ed72
commit 6181b43fa0
1 file changed
+6
@@ -161,6 +161,12 @@
<div class="flex w-full items-center">
<div
class="flex min-w-0 mr-1.5 items-center gap-0.5 md:gap-1 scrollbar-none overflow-x-auto w-fit text-center text-sm font-normal bg-transparent py-1 touch-auto pointer-events-auto"
on:wheel={(e) => {
if (e.deltaY !== 0) {
e.preventDefault();
e.currentTarget.scrollLeft += e.deltaY;
}
}}
>
{#if $user?.role === 'admin' || $user?.permissions?.workspace?.models}
<a