Skip to content

Commit 05d3187

Browse files
committed
fixed some visual bugs
1 parent 124ff14 commit 05d3187

File tree

4 files changed

+24
-7
lines changed

4 files changed

+24
-7
lines changed

app/src/components/form/Selector.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const FormSelector = (props): JSX.Element => {
88
const items = [];
99
let key = 1;
1010
props.items.forEach(el => {
11-
items.push(<MenuItem value={el.value} key={`menu${key}`}>{el.text}</MenuItem>);
11+
items.push(<MenuItem style={{ color: 'black' }} value={el.value} key={`menu${key}`}>{el.text}</MenuItem>);
1212
key++
1313
})
1414
return (

app/src/components/left/HTMLPanel.tsx

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,11 @@ const HTMLPanel = (props): JSX.Element => {
172172
onChange={handleTagChange}
173173
className={isThemeLight ? `${classes.input} ${classes.lightThemeFontColor}` : `${classes.input} ${classes.darkThemeFontColor}`}
174174
style={{ margin: '10px' }}
175+
InputProps={{
176+
style: {
177+
color: isThemeLight ? 'black' : 'white'
178+
}
179+
}}
175180
/>
176181

177182
{(!tag.charAt(0).match(/[A-Za-z]/) || !alphanumeric(tag) || tag.trim() === '' || checkNameDupe(tag))
@@ -192,8 +197,14 @@ const HTMLPanel = (props): JSX.Element => {
192197
onChange={handleNameChange}
193198
autoComplete="off"
194199
className={isThemeLight ? `${classes.input} ${classes.lightThemeFontColor}` : `${classes.input} ${classes.darkThemeFontColor}`}
195-
style={{ margin: '10px' }}
200+
style={{}}
201+
InputProps={{
202+
style: {
203+
color: isThemeLight ? 'black' : 'white'
204+
}
205+
}}
196206
/>
207+
197208

198209
{(!name.charAt(0).match(/[A-Za-z]/) || !alphanumeric(name) || name.trim() === '' || name.length > 10 || checkNameDupe(name))
199210
&& <span className={isThemeLight ? `${classes.errorMessage} ${classes.errorMessageLight}` : `${classes.errorMessage} ${classes.errorMessageDark}`}>
@@ -244,8 +255,8 @@ const useStyles = makeStyles({
244255
textOverflow: 'ellipsis',
245256
backgroundColor: 'rgba(255,255,255,0.15)',
246257
margin: '0px 0px 0px 0px',
247-
width: '160px',
248-
height: '30px',
258+
// width: '200px',
259+
// height: '75px',
249260
alignSelf: 'center',
250261
border: '2px solid grey'
251262
},

app/src/components/right/ComponentPanel.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,12 @@ const ComponentPanel = ({isThemeLight}): JSX.Element => {
152152
// Updated
153153
helperText={errorStatus ? errorMsg : ''}
154154
onChange={handleNameInput}
155+
style={{}}
156+
InputProps={{
157+
style: {
158+
color: isThemeLight ? 'black' : 'white'
159+
}
160+
}}
155161
/>
156162
</div>
157163
</div>
@@ -198,8 +204,8 @@ const useStyles = makeStyles({
198204
textOverflow: 'ellipsis',
199205
backgroundColor: 'rgba(255,255,255,0.15)',
200206
margin: '0px 0px 0px 10px',
201-
width: '140px',
202-
height: '30px',
207+
// width: '140px',
208+
// height: '30px',
203209
borderColor: 'grey',
204210
border: '2px solid grey'
205211
},

app/src/public/styles/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ LEFT COLUMN
161161
}
162162
.customForm input {
163163
align-self: center;
164-
margin: 10px 0px;
164+
margin: 0px 0px;
165165
}
166166

167167
#newElement {

0 commit comments

Comments
 (0)