Skip to content

Commit 47e8a4c

Browse files
final html attr styling
1 parent c243871 commit 47e8a4c

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/components/HtmlAttr.jsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { withStyles } from '@material-ui/core/styles';
44
import Grid from '@material-ui/core/Grid';
55
import TextField from '@material-ui/core/TextField';
66
import IconButton from '@material-ui/core/IconButton';
7+
import Typography from '@material-ui/core/Typography';
78
import SaveIcon from '@material-ui/icons/Save';
89
import { updateHtmlAttr } from '../actions/components';
910
import { HTMLelements, getSize } from '../utils/htmlElements.util.ts';
@@ -80,7 +81,7 @@ class HtmlAttr extends Component {
8081
notchedOutline: classes.notchedOutline,
8182
},
8283
}}
83-
style={{ background: '#424242' }}
84+
style={{ background: '#424242', height: '80%' }}
8485
label={attr}
8586
variant="outlined"
8687
id={attr}
@@ -106,13 +107,9 @@ class HtmlAttr extends Component {
106107
</Fab>
107108
</Grid>
108109
<Grid item xs={4}>
109-
<Paper className={classes.root} elevation={1}>
110-
<p style={{ color: 'gray' }}>
111-
{attr}
112-
{': '}
113-
</p>
110+
<Paper className={classes.root} style={{ height: '80%' }}>
114111
<p style={{ color: 'black' }}>
115-
{focusChild.HTMLInfo[attr] ? focusChild.HTMLInfo[attr] : 'no attribute assigned'}
112+
{focusChild.HTMLInfo[attr] ? focusChild.HTMLInfo[attr] : ' no attribute assigned'}
116113
</p>
117114
</Paper>
118115
</Grid>

0 commit comments

Comments
 (0)