mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 13:55:19 +00:00
Merge pull request #16033 from silentoplayz/sticky-search
refac: sticky headers & smarter pagination on users list page
This commit is contained in:
commit
6ce1166b98
2 changed files with 4 additions and 2 deletions
|
|
@ -336,7 +336,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">
|
||||||
<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')}
|
||||||
|
|
|
||||||
|
|
@ -153,7 +153,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">
|
||||||
<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')}
|
||||||
|
|
@ -493,7 +493,9 @@
|
||||||
ⓘ {$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}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue