mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 20:07:49 +01:00
Sticky top bars for Leaderboard and UserList pages
This commit is contained in:
@@ -334,7 +334,7 @@
|
|||||||
onClose={closeLeaderboardModal}
|
onClose={closeLeaderboardModal}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div class="mt-0.5 mb-2 gap-1 flex flex-col md:flex-row justify-between">
|
<div class="mt-0.5 mb-2 gap-1 flex flex-col md:flex-row justify-between sticky top-0 z-10 bg-gray-50 dark:bg-gray-900 py-2">
|
||||||
<div class="flex md:self-center text-lg font-medium px-0.5 shrink-0 items-center">
|
<div class="flex md:self-center text-lg font-medium px-0.5 shrink-0 items-center">
|
||||||
<div class=" gap-1">
|
<div class=" gap-1">
|
||||||
{$i18n.t('Leaderboard')}
|
{$i18n.t('Leaderboard')}
|
||||||
|
|||||||
@@ -154,7 +154,7 @@
|
|||||||
<Spinner className="size-5" />
|
<Spinner className="size-5" />
|
||||||
</div>
|
</div>
|
||||||
{:else}
|
{:else}
|
||||||
<div class="mt-0.5 mb-2 gap-1 flex flex-col md:flex-row justify-between">
|
<div class="mt-0.5 mb-2 gap-1 flex flex-col md:flex-row justify-between sticky top-0 z-10 bg-gray-50 dark:bg-gray-900 py-2">
|
||||||
<div class="flex md:self-center text-lg font-medium px-0.5">
|
<div class="flex md:self-center text-lg font-medium px-0.5">
|
||||||
<div class="flex-shrink-0">
|
<div class="flex-shrink-0">
|
||||||
{$i18n.t('Users')}
|
{$i18n.t('Users')}
|
||||||
@@ -494,8 +494,10 @@
|
|||||||
ⓘ {$i18n.t("Click on the user role button to change a user's role.")}
|
ⓘ {$i18n.t("Click on the user role button to change a user's role.")}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{#if total > 30}
|
||||||
<Pagination bind:page count={total} perPage={30} />
|
<Pagination bind:page count={total} perPage={30} />
|
||||||
{/if}
|
{/if}
|
||||||
|
{/if}
|
||||||
|
|
||||||
{#if !$config?.license_metadata}
|
{#if !$config?.license_metadata}
|
||||||
{#if total > 50}
|
{#if total > 50}
|
||||||
|
|||||||
Reference in New Issue
Block a user