Skip to content

Commit 96df861

Browse files
authored
Merge pull request #23 from oslabs-beta/laura
Laura
2 parents a9bf652 + eab32fd commit 96df861

File tree

4 files changed

+68
-54
lines changed

4 files changed

+68
-54
lines changed

app/src/components/left/HTMLItem.tsx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -138,23 +138,23 @@ const HTMLItem: React.FC<{
138138

139139
{/* Custom Elements */}
140140
{id > 20 && (
141-
<span id="customHTMLElement">
142-
<div
143-
ref={drag}
144-
style={{ borderColor: '#C6C6C6' }}
145-
className={`${classes.HTMLPanelItem} ${classes.darkThemeFontColor}`}
146-
id="HTMLItem"
147-
>
148-
<div>{name}</div>
149-
</div>
150-
<button
141+
<div
142+
ref={drag}
143+
style={{ borderColor: '#C6C6C6' }}
144+
className={`${classes.HTMLPanelItem} ${classes.darkThemeFontColor}`}
145+
id="HTMLItem"
146+
>
147+
{typeof CodeIcon !== 'undefined' && (
148+
<CodeIcon fontSize="small" align-items="center" />)}
149+
{name}
150+
<button
151151
id="newElement"
152152
style={{ color: '#C6C6C6' }}
153153
onClick={() => deleteAllInstances(id)}
154-
>
155-
X
156-
</button>
157-
</span>
154+
>
155+
X
156+
</button>
157+
</div>
158158
)}
159159
{modal}
160160
</Grid>

app/src/components/left/HTMLPanel.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,6 @@ const useStyles = makeStyles({
317317
},
318318
addComponentWrapper: {
319319
width: '100%',
320-
margin: '5px 0px 0px 0px'
321320
},
322321
input: {
323322
borderRadius: '5px',

app/src/containers/CustomizationPanel.tsx

Lines changed: 24 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -532,26 +532,24 @@ const CustomizationPanel = ({ isThemeLight }): JSX.Element => {
532532
<ProjectManager />
533533
<div className="rightPanelWrapper">
534534
<div>
535-
<div className={classes.rootConfigHeader}>
536535
<h4
537-
className={
538-
isThemeLight
539-
? classes.lightThemeFontColor
540-
: classes.darkThemeFontColor
541-
}
542-
>
543-
Parent Component:
544-
<br />
545-
<br />
546-
<span className={classes.rootCompName}>
547-
{configTarget.name}
548-
</span>
549-
<p style={{ fontSize: '16px' }}>
550-
Drag and drop an html element (or focus one) to see what
551-
happens!
552-
</p>
553-
</h4>
554-
</div>
536+
className={
537+
isThemeLight
538+
? classes.lightThemeFontColor
539+
: classes.darkThemeFontColor
540+
}
541+
>
542+
Parent Component:
543+
<br />
544+
<br />
545+
<span className={classes.rootCompName}>
546+
{configTarget.name}
547+
</span>
548+
<p style={{ fontSize: '16px' }}>
549+
Drag and drop an html element (or focus one) to see what
550+
happens!
551+
</p>
552+
</h4>
555553
</div>
556554
</div>
557555
<ProjectManager />
@@ -581,17 +579,9 @@ const CustomizationPanel = ({ isThemeLight }): JSX.Element => {
581579
{configTarget.child.type === 'component'
582580
? ' component'
583581
: ' element'}{' '}
582+
: {configTarget.child.name}
584583
<br />
585-
<br />
586-
<span
587-
className={
588-
isThemeLight
589-
? `${classes.compName} ${classes.lightThemeFontColor}`
590-
: `${classes.compName} ${classes.darkThemeFontColor}`
591-
}
592-
>
593584
{configTarget.child.name}
594-
</span>
595585
</h4>
596586
</div>
597587
<section className={'customization-section'}>
@@ -877,18 +867,18 @@ const CustomizationPanel = ({ isThemeLight }): JSX.Element => {
877867
<Button
878868
variant="contained"
879869
color="primary"
870+
onClick={handleSave}
880871
className={
881872
isThemeLight
882873
? `${classes.button} ${classes.saveButtonLight}`
883874
: `${classes.button} ${classes.saveButtonDark}`
884875
}
885-
onClick={handleSave}
886876
id="saveButton"
887877
>
888878
SAVE
889879
</Button>
890880
</div>
891-
<div className={classes.buttonRow}>
881+
{/* <div className={classes.buttonRow}>
892882
<Button
893883
variant="contained"
894884
color="primary"
@@ -902,9 +892,9 @@ const CustomizationPanel = ({ isThemeLight }): JSX.Element => {
902892
>
903893
CSS
904894
</Button>
905-
</div>
895+
</div> */}
906896

907-
<div>
897+
{/* <div>
908898
<Button
909899
variant="contained"
910900
color="primary"
@@ -923,7 +913,7 @@ const CustomizationPanel = ({ isThemeLight }): JSX.Element => {
923913
>
924914
Tailwind
925915
</Button>
926-
</div>
916+
</div> */}
927917
{configTarget.child ? (
928918
<div className={classes.buttonRow}>
929919
<Button
@@ -1035,7 +1025,7 @@ const useStyles = makeStyles({
10351025
marginTop: '20px'
10361026
},
10371027
configType: {
1038-
minWidth: '185px',
1028+
minWidth: '100px',
10391029
fontSize: '85%'
10401030
},
10411031
configValue: {

app/src/public/styles/style.css

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ span.material-symbols-outlined {
152152
transition: 0.3s ease all;
153153
border-color: transparent;
154154
background-color: #1e83714b;
155+
border-radius: 8px;
155156
z-index: 40;
156157
}
157158

@@ -303,10 +304,10 @@ span.material-symbols-outlined {
303304
border: none;
304305
background: none;
305306
display: flex;
306-
align-items: center;
307+
align-items: baseline;
307308
justify-content: flex-start;
308-
justify-self: flex-end;
309-
align-self: flex-start;
309+
/* justify-self: flex-end; */
310+
/* align-self: flex-start; */
310311
width: 0.5em;
311312
}
312313

@@ -429,8 +430,6 @@ RIGHT COLUMN
429430
// RIGHT NOW, I'M NOT SURE WHAT RIGHT COL IS REFERING TO
430431
*/
431432
#rightContainer {
432-
overflow-y: auto;
433-
overflow-x: hidden;
434433
display: flex;
435434
flex-direction: row;
436435
height: 100%;
@@ -532,6 +531,32 @@ BOTTOM PANEL
532531
background-color: #191919;
533532
}
534533

534+
.tab-content::-webkit-scrollbar {
535+
width: .8rem;
536+
height: .5rem;
537+
}
538+
539+
.tab-content::-webkit-scrollbar-thumb {
540+
transition: .3s ease all;
541+
border-color: transparent;
542+
background-color: #1e83714b;
543+
border-radius: 8px;
544+
z-index: 40;
545+
}
546+
547+
.tab-content::-webkit-scrollbar {
548+
width: .8rem;
549+
height: .5rem;
550+
}
551+
552+
.tab-content::-webkit-scrollbar-thumb {
553+
transition: .3s ease all;
554+
border-color: transparent;
555+
background-color: #1e83714b;
556+
border-radius: 8px;
557+
z-index: 40;
558+
}
559+
535560
.MuiDataGrid-menuList,
536561
.MuiDataGrid-columnsPanel,
537562
.MuiDataGrid-filterForm {

0 commit comments

Comments
 (0)