Skip to content

Commit 8008e2f

Browse files
committed
Fix formatting of pagination (same column as the table
1 parent a2dfb5d commit 8008e2f

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

src/sauce/home.rs

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ pub fn home() -> Html {
634634
</button>
635635

636636
</div>
637-
637+
// First column
638638
<div class="d-flex mb-2">
639639
<div class="flex-grow-1 p-2 input-group me-2">
640640
<Table<TableLine>
@@ -644,17 +644,23 @@ pub fn home() -> Html {
644644
data={page_rows.clone()}
645645
orderable={true}
646646
/>
647-
<h5>{sum}{" / 41337"}</h5>
647+
<div class="d-flex justify-content-between align-items-center mt-2 w-100">
648+
<h5 class="mb-0 align-self-center">{ sum }{ " / 41337" }</h5>
649+
<div class="my-auto">
650+
<Pagination
651+
total={total_rows}
652+
limit={limit}
653+
max_pages={1}
654+
options={pagination_options.clone()}
655+
on_page={Some(handle_page)}
656+
/>
657+
</div>
658+
</div>
648659
</div>
660+
661+
// Second column
649662
<div class="flex-grow-1 p-2 input-group">
650663

651-
<Pagination
652-
total={total_rows}
653-
limit={limit}
654-
max_pages={1}
655-
options={pagination_options.clone()}
656-
on_page={Some(handle_page)}
657-
/>
658664
<div class="flex-grow-1 p-2 input-group me-2">
659665
<PlotComponent
660666
selected_ids={(*selected_ids.current()).clone()}

0 commit comments

Comments
 (0)