Skip to content

Commit bc71bea

Browse files
committed
moved travel container and buttons container next to each other on the bottom
1 parent aa1a2b1 commit bc71bea

File tree

12 files changed

+51
-106
lines changed

12 files changed

+51
-106
lines changed

src/app/components/Buttons/Tutorial.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -359,12 +359,7 @@ export default class Tutorial extends Component<TutorialProps, TutorialState> {
359359
onBeforeChange={(currentStepIndex) => onChangeHandler(currentStepIndex)} // Callback called before changing the current step.
360360
ref={(steps) => (this.steps = steps)} // ref allows access to intro.js API
361361
/>
362-
<Button
363-
variant='outlined'
364-
className='howToUse-button'
365-
type='button'
366-
onClick={() => startIntro()}
367-
>
362+
<Button className='howToUse-button' type='button' onClick={() => startIntro()}>
368363
<HelpOutlineIcon className='button-icon' sx={{ pr: 1 }} /> Tutorial
369364
</Button>
370365
</>

src/app/containers/ButtonsContainer.tsx

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,7 @@ function ButtonsContainer(): JSX.Element {
9191

9292
return (
9393
<div className='buttons-container'>
94-
<Button
95-
className='pause-button'
96-
variant='outlined'
97-
type='button'
98-
onClick={() => dispatch(toggleMode('paused'))}
99-
>
94+
<Button className='pause-button' type='button' onClick={() => dispatch(toggleMode('paused'))}>
10095
{paused ? (
10196
<LockIcon className='button-icon' sx={{ pr: 1 }} />
10297
) : (
@@ -106,23 +101,21 @@ function ButtonsContainer(): JSX.Element {
106101
</Button>
107102
<Button
108103
className='export-button'
109-
variant='outlined'
110104
type='button'
111105
//@ts-ignore
112106
onClick={() => exportHandler(tabs[currentTab])}
113107
>
114108
<FileDownloadIcon className='button-icon' sx={{ pr: 1 }} />
115109
Download
116110
</Button>
117-
<Button variant='outlined' className='import-button' onClick={() => importHandler(dispatch)}>
111+
<Button className='import-button' onClick={() => importHandler(dispatch)}>
118112
<FileUploadIcon className='button-icon' sx={{ pr: 1 }} />
119113
Upload
120114
</Button>
121115
{/* The component below renders a button for the tutorial walkthrough of Reactime */}
122116
<Tutorial dispatch={dispatch} currentTabInApp={currentTabInApp} />
123117
{/* adding a button for reconnection functionality 10/5/2023 */}
124118
<Button
125-
variant='outlined'
126119
className='reconnect-button'
127120
type='button'
128121
//update onClick functionality to include a popup that contains....

src/app/containers/MainContainer.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,11 @@ function MainContainer(): JSX.Element {
231231
/>
232232
</div>
233233
) : null}
234-
{/* @ts-ignore */}
235-
<TravelContainer snapshotsLength={snapshots.length} />
236-
<ButtonsContainer />
234+
<div className='bottom-controls'>
235+
{/* @ts-ignore */}
236+
<TravelContainer snapshotsLength={snapshots.length} />
237+
<ButtonsContainer />
238+
</div>
237239
</div>
238240
</div>
239241
);

src/app/styles/base/_base.scss

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ body {
1313
height: 100%;
1414
}
1515

16-
.travel-container {
17-
grid-area: travel;
18-
}
1916
.action-container {
2017
grid-area: actions;
2118
transition: 0.5s;
@@ -29,30 +26,13 @@ body {
2926
grid-area: states;
3027
}
3128

32-
.buttons-container {
33-
grid-area: buttons;
34-
}
35-
36-
.action-container {
37-
border-style: solid;
38-
border-color: $action-cont-border;
39-
border-width: 0px;
40-
}
4129

4230
.state-container {
4331
border-style: solid;
4432
border-color: $state-cont-border;
4533
border-width: 0px;
4634
}
4735

48-
.travel-container {
49-
border-style: solid;
50-
border-color: $travel-top-border;
51-
border-left: 0px;
52-
border-right: 0px;
53-
border-bottom: 0px;
54-
}
55-
5636
.saveSeriesContainer {
5737
padding-bottom: 15px;
5838
padding-top: 10px;

src/app/styles/components/_buttons.scss

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@
6767
500 16px 'Roboto',
6868
sans-serif;
6969
width: 120px;
70-
//background: #ff0000;
7170
}
7271

7372
.empty-button:hover {
@@ -127,13 +126,6 @@
127126
padding-bottom: 5px;
128127
}
129128

130-
.jump-button:hover {
131-
// remove the blue border when button is clicked
132-
color: $jump-text;
133-
background-color: $jump-hover;
134-
cursor: pointer;
135-
}
136-
137129
.current-location {
138130
outline: none;
139131
height: $time-button-height;
@@ -190,7 +182,6 @@
190182
.export-button:hover,
191183
.pause-button:hover,
192184
.reconnect-button:hover {
193-
//@extend %button-shared;
194185
color: $function-bar-text-hover;
195186
box-shadow: 1px 1px 2px 1px rgba(30, 86, 171, 0.25);
196187
transform: translate3d(0, -3px, 0);

src/app/styles/layout/_actionContainer.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
border-right: 1px solid #e5e7eb;
44
transition: width 0.3s ease;
55
overflow-x: hidden;
6+
overflow-y: auto;
7+
height: 100%;
68
}
79

810
.actionname {

src/app/styles/layout/_bodyContainer.scss

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
height: 100%;
33
overflow: hidden;
44
display: grid;
5-
grid-template-columns: min-content 1fr;
6-
grid-template-rows: 1fr minmax(min-content, 5%) minmax(min-content, 5%);
5+
grid-template-columns: 280px 1fr; /* Set action container width to 320px */
6+
grid-template-rows: 1fr auto; /* Change to auto for the bottom row */
77
grid-template-areas:
88
'actions states'
9-
'travel travel'
10-
'buttons buttons';
9+
'bottom bottom'; /* New bottom area that spans full width */
1110
}
1211

1312
/* if extension width is less than 500px, stack the body containers */
@@ -22,3 +21,11 @@
2221
'buttons';
2322
}
2423
}
24+
25+
.bottom-controls {
26+
grid-area: bottom;
27+
display: flex;
28+
width: 100%;
29+
border-top: 1px solid #e5e7eb;
30+
background: white;
31+
}

src/app/styles/layout/_buttonsContainer.scss

Lines changed: 12 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
font-family: 'Outfit', sans-serif;
44
}
55
.buttons-container {
6-
//color: #ff0000;
7-
margin: 0 1% 0 1%;
8-
display: grid;
9-
grid-template-columns: repeat(5, 1fr);
10-
grid-gap: 1%;
11-
padding: 1% 0 1% 0;
6+
display: flex;
7+
align-items: center;
8+
background: white;
9+
border-top: 1px solid #e5e7eb;
10+
padding: 12px;
1211
}
1312

1413
.introjs-tooltip {
@@ -20,10 +19,6 @@
2019
padding-left: 2px;
2120
}
2221

23-
// .introjs-helperLayer{
24-
// // border: 2px solid yellow
25-
// }
26-
2722
.tools-container {
2823
display: flex;
2924
justify-content: space-between;
@@ -38,13 +33,6 @@
3833
color: white;
3934
}
4035

41-
@media (max-width: 500px) {
42-
.buttons-container {
43-
//color: #ff0000;
44-
grid-template-columns: repeat(2, 1fr);
45-
}
46-
}
47-
4836
.introjs-nextbutton {
4937
background-color: none;
5038
color: #3256f1;
@@ -74,31 +62,30 @@
7462

7563
.dialog-pop-up {
7664
border: 1px solid #ff0001;
77-
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
65+
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
7866
padding: 13px;
7967
}
8068

8169
.dialog-pop-up-header {
8270
color: #ff0001;
83-
padding: 8px 16px;
84-
font-size: 20px;
71+
padding: 8px 16px;
72+
font-size: 20px;
8573
font-family: $text-font-stack;
8674
}
8775

8876
.dialog-pop-up-contents {
8977
background-color: $pop-up-window-background;
90-
color: $pop-up-window-text;
78+
color: $pop-up-window-text;
9179
font-family: $text-font-stack;
92-
line-height: 1.4;
93-
padding: 0px 15px 15px 15px !important;
80+
line-height: 1.4;
81+
padding: 0px 15px 15px 15px !important;
9482
}
9583

9684
.dialog-pop-up-actions {
9785
padding: 15px;
98-
background-color: #ff0001;
86+
background-color: #ff0001;
9987
}
10088

101-
10289
.close-icon-pop-up-div {
10390
height: 40px;
10491
width: 100%;
@@ -114,4 +101,3 @@
114101
align-items: center;
115102
height: 20%;
116103
}
117-

src/app/styles/layout/_mainContainer.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@
77

88
.state-container-container {
99
display: contents;
10+
width: 100%;
11+
height: 100%;
12+
overflow: auto;
1013
}

src/app/styles/layout/_stateContainer.scss

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,18 +86,14 @@
8686

8787
.router-link {
8888
height: 100%;
89-
// width: 34%;
9089
width: 10%;
9190
display: flex;
9291
justify-content: center;
9392
align-items: center;
9493
background-color: $navbar-unselected;
9594
text-decoration: none;
9695
color: $navbar-unselected-text;
97-
9896
font-size: 75%;
99-
// border-top-right-radius: 10px;
100-
// border-top-left-radius: 10px;
10197
overflow: hidden;
10298
}
10399

@@ -121,7 +117,6 @@
121117
}
122118

123119
.navbar {
124-
// background-color: $navbar-background;
125120
display: flex;
126121
flex-direction: row;
127122
justify-content: center;
@@ -134,7 +129,6 @@
134129
width: 65vw;
135130
z-index: 1;
136131

137-
138132
@extend %disable-highlight;
139133
}
140134

@@ -287,6 +281,11 @@
287281
display: flex;
288282
height: 3px;
289283
width: 200px;
290-
background-image: linear-gradient(to right, $heat-level-1, $heat-level-2, $heat-level-3, $heat-level-4);
284+
background-image: linear-gradient(
285+
to right,
286+
$heat-level-1,
287+
$heat-level-2,
288+
$heat-level-3,
289+
$heat-level-4
290+
);
291291
}
292-

0 commit comments

Comments
 (0)