Skip to content

Commit 0060604

Browse files
caitlinchan23Nkmailind-taniartviner
committed
ui/ux changes in tabs, and play buttons
Co-authored-by: Nkmai <[email protected]> Co-authored-by: lind-tania <[email protected]> Co-authored-by: rtviner <[email protected]> Co-authored-by: caitlinchan23 <[email protected]>
1 parent 1aac453 commit 0060604

File tree

7 files changed

+21
-9
lines changed

7 files changed

+21
-9
lines changed

src/app/components/BarGraph.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ interface TooltipData {
4040
}
4141

4242
/* DEFAULTS */
43-
const margin = { top: 60, right: 30, bottom: 0, left: 50 };
43+
const margin = { top: 30, right: 30, bottom: 0, left: 50 };
4444
const axisColor = '#62d6fb';
4545
const background = '#242529';
4646
const tooltipStyles = {
@@ -194,7 +194,7 @@ const BarGraph = (props) => {
194194
})}
195195
/>
196196
<Text x={-xMax / 2} y="15" transform="rotate(-90)" fontSize={12} fill="#FFFFFF"> Rendering Time (ms) </Text>
197-
<Text x={xMax / 2} y={yMax + 100} fontSize={12} fill="#FFFFFF"> Snapshot Id </Text>
197+
<Text x={xMax / 2} y={yMax + 65} fontSize={12} fill="#FFFFFF"> Snapshot Id </Text>
198198
</svg>
199199
{/* FOR HOVER OVER DISPLAY */}
200200
{tooltipOpen && tooltipData && (

src/app/components/PerformanceVisx.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,15 +104,15 @@ const PerformanceVisx = (props: BarStackProps) => {
104104
// if performance tab is too small it will not return VISX component
105105
return (
106106
<div className='renderTab'>
107-
<FormControlLabel style={{"margin-left":"30px", "margin-top": "20px"}}
107+
<FormControlLabel style={{"margin-left":"30px", "margin-top": "0px"}}
108108
control={
109109
<Switch
110110
onChange={toggleView}
111111
name="checkedB"
112112
color="primary"
113113
/>
114114
}
115-
label="Renders"
115+
label="Component Details"
116116
/>
117117
{/* <button onClick={toggleView}>Toggle Button</button> */}
118118
<div style={{"display": "flex", "justify-content": "center"}}>

src/app/components/legend.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ function LegendVisual({
154154
with: 120px;
155155
line-height: 0.9em;
156156
color: #efefef;
157-
font-size: 9px;
157+
font-size: 11px;
158158
font-family: arial;
159159
padding: 10px 10px;
160160
float: left;
@@ -166,6 +166,7 @@ function LegendVisual({
166166
font-size: 12px;
167167
margin-bottom: 10px;
168168
font-weight: 100;
169+
font-family: arial;
169170
}
170171
`}
171172
</style>

src/app/styles/components/_buttons.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@
8989
.play-button:hover {
9090
background: $blue-color-gradient;
9191
transform: translate3d(0, -3px, 0);
92+
cursor: pointer;
9293
}
9394

9495
.backward-button {
@@ -121,6 +122,7 @@
121122
.backward-button:hover {
122123
background: $blue-color-gradient;
123124
transform: translate3d(0, -3px, 0);
125+
cursor: pointer;
124126
}
125127

126128
.import-button,

src/app/styles/components/_performanceVisx.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,8 @@
1313

1414
.MuiSwitch-track {
1515
background-color: #e7e7e7 !important;
16-
}
16+
}
17+
18+
.MuiTypography-body1 {
19+
font-size: 1em !important;
20+
}

src/app/styles/components/_renderingFrequency.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
border: 1px solid rgba(184, 196, 194, 0.25);
1414
box-shadow: 2px 3px 4px 2px rgba(0, 0, 0, 0.2);
1515

16+
1617
h3 {
1718
color: $text-color;
1819
margin-bottom: 5px;

src/app/styles/layout/_travelContainer.scss

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,19 @@
1212
justify-content: space-around;
1313
}
1414

15+
1516
.react-select-container {
1617
font-size: 12px;
1718
min-width: 90px;
1819
margin: 8px;
19-
}
20-
21-
.react-select-container {
2220
.react-select__control {
2321
background-color: $light-grey-four;
2422
border-color: transparent;
2523
@extend %disable-highlight;
2624
}
25+
.react-select__control:hover {
26+
cursor: pointer;
27+
}
2728
.react-select__menu {
2829
background-color: $light-grey-four;
2930
@extend %disable-highlight;
@@ -33,10 +34,13 @@
3334
}
3435
.react-select__option:hover {
3536
background-color: $fiery-rose;
37+
cursor: pointer;
3638
}
3739
.react-select__option--is-selected,
3840
.react-select__option--is-focused {
3941
background-color: transparent;
42+
cursor: pointer;
43+
4044
}
4145

4246
// removes the cursor from blinking

0 commit comments

Comments
 (0)