Skip to content

Commit de4aa20

Browse files
committed
center buttons
1 parent bf1ccb4 commit de4aa20

File tree

1 file changed

+22
-21
lines changed

1 file changed

+22
-21
lines changed

src/sauce/home.rs

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -475,27 +475,28 @@ pub fn home() -> Html {
475475
</div>
476476
</div>
477477

478-
479-
<button
480-
onclick={clear_plot_callback.clone()}
481-
class="btn btn-primary me-2"
482-
>
483-
{ "Clear Plot" }
484-
</button>
485-
486-
<button
487-
onclick={onclick_toggle_x_log}
488-
class="btn btn-primary me-2"
489-
>
490-
{if *is_x_log { "Switch X to Linear Scale" } else { "Switch X to Log Scale" }}
491-
</button>
492-
493-
<button
494-
onclick={onclick_toggle_y_log}
495-
class="btn btn-primary me-2"
496-
>
497-
{if *is_y_log { "Switch Y to Linear Scale" } else { "Switch Y to Log Scale" }}
498-
</button>
478+
<div class="d-flex mb-2 justify-content-center">
479+
<button
480+
onclick={clear_plot_callback.clone()}
481+
class="btn btn-primary me-2"
482+
>
483+
{ "Clear Plot" }
484+
</button>
485+
486+
<button
487+
onclick={onclick_toggle_x_log}
488+
class="btn btn-primary me-2"
489+
>
490+
{if *is_x_log { "Switch X to Linear Scale" } else { "Switch X to Log Scale" }}
491+
</button>
492+
493+
<button
494+
onclick={onclick_toggle_y_log}
495+
class="btn btn-primary me-2"
496+
>
497+
{if *is_y_log { "Switch Y to Linear Scale" } else { "Switch Y to Log Scale" }}
498+
</button>
499+
</div>
499500

500501
<div class="d-flex mb-2">
501502
<div class="flex-grow-1 p-2 input-group me-2">

0 commit comments

Comments
 (0)