mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-16 04:28:36 +00:00
The analytics dashboard renders inside the settings modal, whose tab area clips overflowing content. Unlike the other tabs, analytics had no scroll area of its own, so on any instance with more than a handful of models or users the bottom of the model and user ranking tables was cut off and could not be reached. The analytics wrapper now scrolls vertically, using the same scroll classes as the other settings tabs. Verified in a browser with 30 models and 45 users at 1400x900, 1280x720 and 700x900: before, wheel scrolling moved nothing; after, both tables scroll to their last row with a single scrollbar and no horizontal overflow. Fixes #30428
24 lines
477 B
Svelte
24 lines
477 B
Svelte
<script>
|
|
import { onMount, getContext } from 'svelte';
|
|
import { goto } from '$app/navigation';
|
|
import { user } from '$lib/stores';
|
|
|
|
import Dashboard from './Analytics/Dashboard.svelte';
|
|
|
|
const i18n = getContext('i18n');
|
|
|
|
let loaded = false;
|
|
|
|
onMount(async () => {
|
|
if ($user?.role !== 'admin') {
|
|
await goto('/');
|
|
}
|
|
loaded = true;
|
|
});
|
|
</script>
|
|
|
|
{#if loaded}
|
|
<div class="w-full h-full overflow-y-auto scrollbar-hover pr-1.5 pb-2">
|
|
<Dashboard />
|
|
</div>
|
|
{/if}
|