Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: fix pagination bar catalog alignment #265

Merged
merged 1 commit into from
Oct 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 20 additions & 8 deletions src/components/Catalog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@
</div>
</div>
</div>
<div v-else>
<div
v-else
class="list-wrapper"
>
<CatalogCardList
v-if="activeView == 'grid'"
:products="catalogItems"
Expand All @@ -39,14 +42,14 @@
:products="catalogItems"
:loading="loading"
/>
<PaginationBar
class="pagination-bar container max-w-screen-2xl mx-auto"
:page-size="cardsPerPage"
:total-count="totalCount"
:search-triggered="searchTriggered"
@pageChanged="$emit('list-page-changed', $event)"
/>
</div>
<PaginationBar
class="pagination-bar container mt-4"
:page-size="cardsPerPage"
:total-count="totalCount"
:search-triggered="searchTriggered"
@pageChanged="$emit('list-page-changed', $event)"
/>
</div>
</template>

Expand Down Expand Up @@ -126,6 +129,15 @@ export default defineComponent({
</script>

<style lang="scss" scoped>
.list-wrapper {
width: 100%;
}

.pagination-bar {
// TODO: Kui variables
margin-top: 16px;
}

.products-content {
--grey-500: var(--button_colors-primary-fill);
display: flex;
Expand Down