Skip to content

Commit

Permalink
Merge branch 'feature/last-swaps' into feature/swap-layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita-Polyakov committed Mar 7, 2024
2 parents 57de8da + 40e718a commit 7aafeb6
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 15 deletions.
12 changes: 6 additions & 6 deletions src/components/pages/Swap/Widget/Transactions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</s-table-column>
<s-table-column width="76">
<template #header>
<span>Time</span>
<span>{{ t('transaction.startTime') }}</span>
</template>
<template v-slot="{ row }">
<div class="explore-table-item-date">
Expand All @@ -29,15 +29,15 @@
</s-table-column>
<s-table-column width="94">
<template #header>
<span>Account</span>
<span>{{ tc('accountText', 1) }}</span>
</template>
<template v-slot="{ row }">
<formatted-address :value="row.address" :symbols="8" />
</template>
</s-table-column>
<s-table-column width="112" header-align="left" align="left">
<template #header>
<span>Input</span>
<span>{{ t('transfers.from') }}</span>
</template>
<template v-slot="{ row }">
<div class="explore-table-cell">
Expand All @@ -52,7 +52,7 @@
</s-table-column>
<s-table-column width="112" header-align="left" align="left">
<template #header>
<span>Output</span>
<span>{{ t('transfers.to') }}</span>
</template>
<template v-slot="{ row }">
<div class="explore-table-cell">
Expand All @@ -67,7 +67,7 @@
</s-table-column>
<s-table-column width="140" header-align="right" align="right">
<template #header>
<span>Sold</span>
<span>{{ t('removeLiquidity.input') }}</span>
</template>
<template v-slot="{ row }">
<formatted-amount
Expand All @@ -79,7 +79,7 @@
</s-table-column>
<s-table-column width="140" header-align="left" align="left">
<template #header>
<span>Bought</span>
<span>{{ t('removeLiquidity.output') }}</span>
</template>
<template v-slot="{ row }">
<formatted-amount
Expand Down
2 changes: 1 addition & 1 deletion src/indexer/queries/orderBook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const SubqueryOrderBooksQuery = gql<ConnectionQueryResponse<OrderBookEntity>>`

const SubsquidOrderBooksQuery = gql<ConnectionQueryResponse<OrderBookEntity>>`
query SubsquidOrderBooksQuery($after: String = null, $where: OrderBookWhereInput) {
data: orderBooksConnection(after: $after, where: $where) {
data: orderBooksConnection(orderBy: id_ASC, after: $after, where: $where) {
pageInfo {
hasNextPage
endCursor
Expand Down
20 changes: 12 additions & 8 deletions src/styles/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -464,14 +464,7 @@ $button-custom-shadow: -1px -1px 5px rgba(0, 0, 0, 0.05), 1px 1px 5px rgba(0, 0,
&-cell {
display: flex;
align-items: center;

& + & {
margin-top: $inner-spacing-mini;
}

& > *:not(:last-child) {
margin-right: $inner-spacing-mini;
}
gap: $inner-spacing-mini;
}
}

Expand Down Expand Up @@ -535,6 +528,17 @@ $button-custom-shadow: -1px -1px 5px rgba(0, 0, 0, 0.05), 1px 1px 5px rgba(0, 0,
th.el-table__cell.is-leaf,
td.el-table__cell {
border-color: var(--s-color-base-border-secondary);

&.is-right {
.explore-table-cell {
justify-content: right;
}
}
&.is-left {
.explore-table-cell {
justify-content: left;
}
}
}

.el-table__fixed {
Expand Down

0 comments on commit 7aafeb6

Please sign in to comment.