Skip to content

Commit b4cd119

Browse files
committed
fixed jumping, bodycontainer size, and scrolling button
1 parent f186970 commit b4cd119

File tree

4 files changed

+36
-20
lines changed

4 files changed

+36
-20
lines changed

src/app/components/BarGraph.tsx

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -124,15 +124,17 @@ const BarGraph = (props) => {
124124
classname[i].addEventListener('click', animateButton, false);
125125
}
126126
return (
127-
<div>
128-
<button
129-
className='save-series-button'
130-
onClick={(e) => {
131-
dispatch(save(toStorage));
132-
}}
133-
>
134-
Save Series
135-
</button>
127+
<div className="bargraph">
128+
<div className="series-options-container">
129+
<button
130+
className='save-series-button'
131+
onClick={(e) => {
132+
dispatch(save(toStorage));
133+
}}
134+
>
135+
Save Series
136+
</button>
137+
</div>
136138
<svg ref={containerRef} width={width} height={height}>
137139
{}
138140
<rect

src/app/components/WebMetrics.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ const radialGraph = (props) => {
9191
return (
9292

9393

94-
<div id="card">
94+
<div id="card" className="metric">
9595
<div id="chart">
96-
<Charts options={state.options} series={state.series} type="radialBar" height={250} width={250}/>
96+
<Charts options={state.options} series={state.series} type="radialBar" height={200} width={200}/>
9797
</div>
9898
</div>
9999

src/app/styles/layout/_bodyContainer.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.body-container1 {
2-
height: 94%;
2+
height: 100%;
33
overflow: hidden;
44
display: grid;
55
grid-template-columns: min-content 2fr;

src/app/styles/layout/_stateContainer.scss

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@
1010
}
1111

1212
.toggleAC {
13-
color: #00dffc;
13+
// color: #00dffc;
14+
color: $blue-brand;
1415
background: $background-color;
15-
height: 75%;
16+
height: 50%;
1617
text-decoration: none;
1718
border: none;
1819
}
@@ -196,14 +197,27 @@
196197

197198
// Web Metrics Container
198199
.web-metrics-container {
199-
200-
// padding: 3rem;
201-
// display: grid;
202-
display: flex;
200+
display: grid;
201+
grid-template-columns: auto auto;
203202
align-items: center;
204203
justify-content: center;
205-
flex-wrap: wrap;
206-
margin-top: 3rem;
204+
// padding: 3rem;
205+
// display: flex;
206+
// flex-wrap: wrap;
207+
// margin-top: 0.1rem;
208+
// position: absolute;
207209
// grid-template-columns: repeat(2, 1fr);
208210
// grid-template-rows: repeat(2, 1fr);
211+
}
212+
213+
.metric {
214+
min-height: 200px;
215+
min-width: 200px;
216+
max-height: 200px;
217+
max-width: 200px;
218+
}
219+
220+
.bargraph {
221+
position: relative;
222+
margin-top: 1rem;
209223
}

0 commit comments

Comments
 (0)