Skip to content

Commit

Permalink
reduce scroll jumping on switching networks for builders list
Browse files Browse the repository at this point in the history
  • Loading branch information
lukachi committed Feb 18, 2025
1 parent 44ab9b8 commit 06861e6
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/pages/Builders/pages/BuildersList/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,8 @@
</div>
</div>

<div class="z-30 mt-16 flex w-full items-center justify-between">
<h2
v-if="
!builderSubnetsState.isLoaded.value || listData.builderSubnets.length
"
class="self-start text-textSecondaryMain"
>
<div class="z-30 mb-8 mt-16 flex w-full items-center justify-between">
<h2 class="self-start text-textSecondaryMain">
{{ $t('builders-list.main-table-title') }}
</h2>

Expand Down Expand Up @@ -109,7 +104,7 @@
</template>
<template v-else-if="listData.builderSubnets.length">
<builders-table
class="z-10 mt-8"
class="z-10"
:builder-subnets="listData.builderSubnets"
v-model:order-by-model="orderBy"
v-model:order-direction-model="orderDirection"
Expand All @@ -123,7 +118,7 @@
</template>
<skeleton-table
v-else
:rows="DEFAULT_BUILDERS_PAGE_LIMIT"
:rows="1"
sizing="1fr"
:schemes="['medium']"
common-skeleton-class-names="min-h-[72px]"
Expand Down Expand Up @@ -170,7 +165,7 @@
</template>
<skeleton-table
v-else
:rows="DEFAULT_BUILDERS_PAGE_LIMIT"
:rows="1"
sizing="1fr"
:schemes="['medium']"
common-skeleton-class-names="min-h-[72px]"
Expand Down

0 comments on commit 06861e6

Please sign in to comment.