Skip to content

Commit 797fd7b

Browse files
authored
Merge pull request #9 from openmc-data-storage/making-plot-size-better
Making plot size better
2 parents 148dc90 + 4e4a18b commit 797fd7b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

index.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,8 @@ h1 + .subtitle {
3333
display: block;
3434
margin-top: -1em;
3535
}
36+
37+
.plot-container {
38+
width: 100%;
39+
height: 100%;
40+
}

src/sauce/home.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,7 @@ pub fn plot_component(props: &PlotProps) -> Html {
113113
});
114114

115115
html! {
116-
<div style="text-align: center;">
117-
<div class="d-flex mb-2">
118-
119-
</div>
120116
<div id="plot-div"></div>
121-
</div>
122117
}
123118
}
124119

@@ -521,7 +516,7 @@ pub fn home() -> Html {
521516
// options={pagination_options}
522517
// on_page={Some(handle_page)}
523518
// />
524-
<div class="flex-grow-1" style="width: 100%;">
519+
<div class="flex-grow-1 p-2 input-group me-2">
525520
<PlotComponent
526521
selected_indexes={(*selected_indexes.current()).clone()}
527522
is_y_log={is_y_log.clone()}

0 commit comments

Comments
 (0)