Skip to content

Commit 028519a

Browse files
committed
some styling
1 parent 58afec7 commit 028519a

File tree

5 files changed

+72
-36
lines changed

5 files changed

+72
-36
lines changed

src/app/components/ComponentMap.tsx

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ export default function ComponentMap({
220220
if (data[key] !== 'reactFiber' && typeof data[key] !== 'object' && exclude.includes(key) !== true) {
221221
propsFormat.push(<p className="stateprops">
222222
{`${key}: ${data[key]}`}
223-
</p>);
223+
</p>);
224224
} else if (data[key] !== 'reactFiber' && typeof data[key] === 'object' && exclude.includes(key) !== true) {
225225
const result = makePropsPretty(data[key]);
226226
nestedObj.push(result);
@@ -359,7 +359,7 @@ export default function ComponentMap({
359359
forceUpdate();
360360
}}
361361
/>
362-
)}
362+
)}
363363
{/* This creates the rectangle boxes for each component and sets it relative position to other parent nodes of the same level. */}
364364
{node.depth !== 0 && (
365365
<rect
@@ -371,9 +371,7 @@ export default function ComponentMap({
371371
fill={node.children ? '#161521' : '#62d6fb'}
372372
// node.data.isExpanded = if node is collapsed
373373
// stroke={(node.data.isExpanded && node.child) ? '#95fb62' : '#a69ff5'} => node.child is gone when clicked, even if it actually has children. Maybe better call node.children => node.leaf
374-
stroke={(node.data.isExpanded && node.data.children.length > 0) ? '#95fb62' : '#a69ff5'}
375-
376-
// if already child in fill do not all stroke to change change color later but it works!!!!!!!!
374+
stroke={(node.data.isExpanded && node.data.children.length > 0) ? '#ff6569' : 'none'}
377375
strokeWidth={3}
378376
// strokeDasharray={node.children ? '0' : '2,2'}
379377
strokeOpacity="1"
@@ -403,25 +401,25 @@ export default function ComponentMap({
403401
onMouseEnter={() => dispatch(onHover(node.data.rtid))} // fix this not working
404402
onMouseLeave={() => dispatch(onHoverExit(node.data.rtid))}
405403
/>
406-
)}
404+
)}
407405
{/* Display text inside of each component node */}
408406
<text
409-
dy=".33em"
410-
fontSize={10}
411-
fontFamily="Roboto"
412-
textAnchor="middle"
413-
style={{ pointerEvents: 'none' }}
414-
fill={
407+
dy=".33em"
408+
fontSize={10}
409+
fontFamily="Roboto"
410+
textAnchor="middle"
411+
style={{ pointerEvents: 'none' }}
412+
fill={
415413
node.depth === 0
416414
? '#161521'
417415
: node.children
418416
? 'white'
419417
: '#161521'
420418
}
421-
z
422-
>
423-
{node.data.name}
424-
</text>
419+
z
420+
>
421+
{node.data.name}
422+
</text>
425423
</Group>
426424
);
427425
})}

src/app/components/LinkControls.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ const controlStyles = {
1010
const dropDownStyle = {
1111
margin: '0.5em',
1212
fontSize: '12px',
13+
fontFamily: 'Roboto, sans-serif',
1314
borderRadius: '4px',
15+
borderStyle: 'solid',
16+
borderWidth: '1px',
1417
backgroundColor: '#242529',
1518
color: 'white',
1619
padding: '2px',
@@ -112,12 +115,11 @@ export default function LinkControls({
112115
</select>
113116

114117
{/* Controls for the select selections. */}
115-
<label>Select:</label>
118+
<label> Select:</label>
116119
&nbsp; {/*This is a non-breaking space - Prevents an automatic line break at this position */}
117-
<input list='nodeOptions' type='text' name="nodeOptions"
118-
onChange={e => {
119-
setSelectedNode(e.target.value)
120-
}}
120+
<input id='selectInput' list='nodeOptions' type='text' name="nodeOptions"
121+
onChange={e => { setSelectedNode(e.target.value) }}
122+
style={dropDownStyle}
121123
/>
122124
<datalist id='nodeOptions'>
123125
{nodeList.map(node => (

src/app/components/RenderingFrequency.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,19 @@ const ComponentCard = props => {
9393
</div>
9494
</div>
9595
<div className="DataComponent">
96-
{expand === true ? dataComponentArray : null}
96+
{expand && dataComponentArray}
9797
</div>
9898

9999
</div>
100100
);
101101
};
102102

103+
// const dataComponentContainer = (
104+
// <div>
105+
// {dataComponentArray.}
106+
// </div>
107+
// );
108+
103109
const DataComponent = props => {
104110
const {
105111
header,

src/app/styles/components/_buttons.scss

Lines changed: 34 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
2+
23
.save-series-button {
34
padding: 3px;
45
outline: transparent;
@@ -23,6 +24,7 @@
2324
background: rgb(41, 164, 41);
2425
}
2526
}
27+
2628
.delete-button {
2729
padding: 3px;
2830
outline: transparent;
@@ -63,6 +65,7 @@
6365
width: 120px;
6466
background: $red-color-gradient;
6567
}
68+
6669
.empty-button:hover {
6770
color: black;
6871
box-shadow: $box-shadow-red;
@@ -114,10 +117,19 @@
114117
// remove the blue border when button is clicked
115118
color: white;
116119
background-color: $fiery-rose;
117-
118120
cursor: pointer;
119121
}
120122

123+
.current-location {
124+
outline: none;
125+
height: 20px;
126+
margin-bottom: 8px;
127+
width: 70px;
128+
border: transparent;
129+
border-radius: 3px;
130+
font: normal 11px 'Roboto', sans-serif;
131+
}
132+
121133
.empty-button:hover {
122134
color: white;
123135
background-color: $highlight-color;
@@ -158,6 +170,7 @@
158170
background: $blue-color-gradient;
159171
border-radius: 5px;
160172
}
173+
161174
.play-button:focus,
162175
.backward-button:focus,
163176
.forward-button:focus {
@@ -182,6 +195,7 @@
182195
border-color: transparent;
183196
background: $blue-color-gradient;
184197
}
198+
185199
.import-button:hover,
186200
.howToUse-button:hover,
187201
.export-button:hover,
@@ -202,6 +216,7 @@
202216
overflow: visible;
203217
vertical-align: -0.125em;
204218
}
219+
205220
%button-shared {
206221
padding: 5px;
207222
outline: none;
@@ -225,11 +240,9 @@
225240
.dropdown-dark {
226241
background: #444;
227242
border-color: #111111 #0a0a0a black;
228-
background-image: -webkit-linear-gradient(
229-
top,
230-
transparent,
231-
rgba(0, 0, 0, 0.4)
232-
);
243+
background-image: -webkit-linear-gradient(top,
244+
transparent,
245+
rgba(0, 0, 0, 0.4));
233246
background-image: -moz-linear-gradient(top, transparent, rgba(0, 0, 0, 0.4));
234247
background-image: -o-linear-gradient(top, transparent, rgba(0, 0, 0, 0.4));
235248
background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.4));
@@ -249,21 +262,23 @@
249262
.dropdown-dark .dropdown-select {
250263
color: #aaa;
251264
text-shadow: 0 1px black;
252-
background: #444; /* Fallback for IE 8 */
265+
background: #444;
266+
/* Fallback for IE 8 */
253267
}
254268

255269
.dropdown-dark .dropdown-select:focus {
256270
color: #ccc;
257271
}
258272

259-
.dropdown-dark .dropdown-select > option {
273+
.dropdown-dark .dropdown-select>option {
260274
background: #444;
261275
text-shadow: 0 1px rgba(0, 0, 0, 0.4);
262276
}
263277

264278
.MuiSelect-icon {
265279
color: lightgrey !important;
266280
}
281+
267282
.series-options-container {
268283
display: flex;
269284
justify-content: space-between;
@@ -274,29 +289,35 @@
274289
.snapshotId-header {
275290
font-size: 1rem;
276291
}
292+
277293
.dropdown-and-delete-series-container {
278294
display: flex;
279295
align-items: center;
280296
}
297+
281298
.close-button-container {
282299
display: flex;
283300
justify-content: flex-end;
284301
}
302+
285303
.closebtn {
286304
font-size: 20px;
287305
color: #818181;
288306
background-color: transparent;
289307
border: none;
290308
box-shadow: none;
291309
}
310+
292311
.closebtn:hover {
293312
color: #f1f1f1;
294313
}
314+
295315
.side-bar-button {
296316
width: 80px;
297317
height: 30px;
298318
padding: 0 2rem;
299319
}
320+
300321
/* sidebar button open and closing functionality */
301322
aside {
302323
width: 250px;
@@ -308,13 +329,15 @@ aside {
308329
.no-aside {
309330
width: 30px;
310331
}
332+
311333
.toggle {
312334
// width: 40px;
313335
// height: 10px;
314336
display: block;
315337
position: relative;
316338
margin-top: 1rem;
317339
}
340+
318341
/* toggle i handles arrow animation */
319342
.toggle i,
320343
.toggle i::after,
@@ -360,7 +383,9 @@ aside {
360383
.no-aside .toggle i::after {
361384
transform: none;
362385
}
386+
363387
#arrow {
364388
margin-bottom: 40px;
365389
}
366-
/* ^ sidebar button open and closing functionality */
390+
391+
/* ^ sidebar button open and closing functionality */

src/app/styles/components/_renderingFrequency.scss

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
1-
.borderStyling{
1+
.borderStyling {
22
border-radius: 5px;
33
border: 1px solid rgba(184, 196, 194, 0.25);
44
box-shadow: 2px 3px 4px 2px rgba(0, 0, 0, 0.2);
55
width: 40vh;
66
}
7-
.DataComponent{
7+
8+
.DataComponent {
89
display: flex;
910
flex-direction: row;
10-
width: 40vh
11+
flex-wrap: wrap;
12+
width: 80vw;
1113
}
14+
1215
.StyledGridElement {
1316
display: flex;
1417
align-items: center;
1518
justify-content: space-between;
1619
background: #242529;
1720
padding: 20px;
18-
width: 40vh;
21+
width: 80vw;
1922
height: 5vh;
2023
margin: 20px 10px;
2124
font-family: 'Roboto', sans-serif;
@@ -45,6 +48,7 @@
4548
line-height: 18px;
4649
}
4750
}
51+
4852
.ExpandStyledGridElement {
4953
display: flex;
5054
align-items: center;
@@ -80,9 +84,10 @@
8084
line-height: 18px;
8185
}
8286
}
87+
8388
.RenderRight {
8489
border-radius: 5px;
8590
background: $blue-color-gradient;
8691
width: 10%;
8792
padding: 0 0.5em;
88-
}
93+
}

0 commit comments

Comments
 (0)