Skip to content

Commit a78e697

Browse files
committed
Refactors pagination styling to use utility classes
Replaces custom SCSS footer classes with Bootstrap utility classes for pagination controls across zip import components.
1 parent 0151506 commit a78e697

File tree

4 files changed

+4
-50
lines changed

4 files changed

+4
-50
lines changed

client/src/components/ImportData/zip/ZipFileSelector.vue

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ function onSearch(value: string) {
192192
No files found matching "{{ searchQuery }}". Try a different search term.
193193
</BAlert>
194194

195-
<div v-if="showPagination" class="zip-file-selector-footer mt-3">
195+
<div v-if="showPagination" class="d-flex justify-content-center py-3 mt-3">
196196
<BPagination
197197
:value="currentPage"
198198
:total-rows="totalItems"
@@ -205,16 +205,3 @@ function onSearch(value: string) {
205205
</div>
206206
</div>
207207
</template>
208-
209-
<style scoped lang="scss">
210-
@import "theme/blue.scss";
211-
212-
.zip-file-selector {
213-
.zip-file-selector-footer {
214-
display: flex;
215-
justify-content: center;
216-
padding: 1rem 0;
217-
border-top: 1px solid $brand-secondary;
218-
}
219-
}
220-
</style>

client/src/components/ImportData/zip/ZipImportSummary.vue

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ const fileBadges: CardBadge[] = [
9696
</GCard>
9797
</div>
9898

99-
<div v-if="showPagination" class="zip-summary-footer mt-3">
99+
<div v-if="showPagination" class="d-flex justify-content-center py-3 mt-3">
100100
<BPagination
101101
:value="currentPage"
102102
:total-rows="totalItems"
@@ -109,14 +109,3 @@ const fileBadges: CardBadge[] = [
109109
</div>
110110
</div>
111111
</template>
112-
113-
<style scoped lang="scss">
114-
@import "theme/blue.scss";
115-
116-
.zip-summary-footer {
117-
display: flex;
118-
justify-content: center;
119-
padding: 1rem 0;
120-
border-top: 1px solid $brand-secondary;
121-
}
122-
</style>

client/src/components/ImportData/zip/views/GalaxyZipView.vue

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const {
3030

3131
<ZipFileEntryCard v-for="file in paginatedFiles" :key="file.path" :file="file" />
3232

33-
<div v-if="showPagination" class="galaxy-zip-footer mt-3">
33+
<div v-if="showPagination" class="d-flex justify-content-center py-3 mt-3">
3434
<BPagination
3535
:value="currentPage"
3636
:total-rows="files.length"
@@ -43,14 +43,3 @@ const {
4343
</div>
4444
</div>
4545
</template>
46-
47-
<style scoped lang="scss">
48-
@import "theme/blue.scss";
49-
50-
.galaxy-zip-footer {
51-
display: flex;
52-
justify-content: center;
53-
padding: 1rem 0;
54-
border-top: 1px solid $brand-secondary;
55-
}
56-
</style>

client/src/components/ImportData/zip/views/RegularZipView.vue

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const zipFileBadges: CardBadge[] = [
4848
</template>
4949
</GCard>
5050

51-
<div v-if="showPagination" class="regular-zip-footer mt-3">
51+
<div v-if="showPagination" class="d-flex justify-content-center py-3 mt-3">
5252
<BPagination
5353
:value="currentPage"
5454
:total-rows="files.length"
@@ -61,14 +61,3 @@ const zipFileBadges: CardBadge[] = [
6161
</div>
6262
</div>
6363
</template>
64-
65-
<style scoped lang="scss">
66-
@import "theme/blue.scss";
67-
68-
.regular-zip-footer {
69-
display: flex;
70-
justify-content: center;
71-
padding: 1rem 0;
72-
border-top: 1px solid $brand-secondary;
73-
}
74-
</style>

0 commit comments

Comments
 (0)