Skip to content

Commit

Permalink
remove fixed table
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita-Polyakov committed Mar 5, 2024
1 parent 5296bd5 commit fb9a829
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/components/pages/Swap/Widget/Transactions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
</div>
</template>
</s-table-column>
<s-table-column width="140" header-align="center" align="center">
<s-table-column width="140" header-align="right" align="right">
<template #header>
<span>Sold</span>
</template>
Expand All @@ -77,7 +77,7 @@
/>
</template>
</s-table-column>
<s-table-column width="140" header-align="center" align="center">
<s-table-column width="140" header-align="left" align="left">
<template #header>
<span>Bought</span>
</template>
Expand Down
6 changes: 0 additions & 6 deletions src/styles/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -556,12 +556,6 @@ $button-custom-shadow: -1px -1px 5px rgba(0, 0, 0, 0.05), 1px 1px 5px rgba(0, 0,
&.is-scrolling-left ~ .el-table__fixed {
box-shadow: inherit;
}

.el-scrollbar__bar.is-horizontal {
right: 0;
left: unset;
width: calc(100% - #{$fixed-column-width});
}
}

&.el-table--scrollable-x {
Expand Down
2 changes: 1 addition & 1 deletion src/views/Explore/Books.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class="explore-table"
>
<!-- Index -->
<s-table-column width="240" label="#" fixed-position="left">
<s-table-column width="240" label="#">
<template #header>
<div class="explore-table-item-index">
<span @click="handleResetSort" :class="['explore-table-item-index--head', { active: isDefaultSort }]">
Expand Down
2 changes: 1 addition & 1 deletion src/views/Explore/Demeter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class="explore-table"
>
<!-- Index -->
<s-table-column width="240" label="#" fixed-position="left">
<s-table-column width="240" label="#">
<template #header>
<div class="explore-table-item-index">
<span @click="handleResetSort" :class="['explore-table-item-index--head', { active: isDefaultSort }]">
Expand Down
2 changes: 1 addition & 1 deletion src/views/Explore/Pools.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class="explore-table"
>
<!-- Index -->
<s-table-column width="240" label="#" fixed-position="left">
<s-table-column width="240" label="#">
<template #header>
<div class="explore-table-item-index">
<span @click="handleResetSort" :class="['explore-table-item-index--head', { active: isDefaultSort }]">
Expand Down
2 changes: 1 addition & 1 deletion src/views/Explore/Tokens.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class="explore-table"
>
<!-- Index -->
<s-table-column width="280" label="#" fixed-position="left">
<s-table-column width="280" label="#">
<template #header>
<div class="explore-table-item-index">
<span @click="handleResetSort" :class="['explore-table-item-index--head', { active: isDefaultSort }]">
Expand Down
4 changes: 4 additions & 0 deletions src/views/Swap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,9 @@ export default class Swap extends Mixins(mixins.LoadingMixin, TranslationMixin,
&--small {
max-width: $inner-window-width;
}
@include tablet(true) {
max-width: $inner-window-width;
}
}
</style>

0 comments on commit fb9a829

Please sign in to comment.