Skip to content

Commit a158f43

Browse files
committed
fixed some styling
1 parent 6d54ec5 commit a158f43

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

src/components/CodePreview.tsx

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ class CodePreview extends Component<CodePreviewProps, StateInt> {
5151
// }
5252
componentDidUpdate(prevProp: CodePreviewProps) {
5353
if (this.props.focusComponent.changed !== prevProp.focusComponent.changed) {
54-
console.log('HEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE');
5554
this.generateNewCode();
5655
}
5756
}
@@ -66,7 +65,7 @@ class CodePreview extends Component<CodePreviewProps, StateInt> {
6665
parser: 'babel'
6766
}
6867
);
69-
console.log('code prev>>>>>>>>>>>>>>>>>>>', text);
68+
// console.log('code prev>>>>>>>>>>>>>>>>>>>', text);
7069
this.props.updateCode({
7170
componentId: this.props.focusComponent.id,
7271
code: text
@@ -78,11 +77,11 @@ class CodePreview extends Component<CodePreviewProps, StateInt> {
7877
return (
7978
<div
8079
style={{
81-
height: '330px',
80+
height: '80%',
8281
paddingLeft: '0px',
8382
paddingTop: '10px',
8483
overflow: 'auto',
85-
maxWidth: '70%',
84+
maxWidth: '60%',
8685
border: '2px solid #33eb91',
8786
borderRadius: '5px'
8887
}}
@@ -103,6 +102,15 @@ class CodePreview extends Component<CodePreviewProps, StateInt> {
103102
editorProps={{ $blockScrolling: true }}
104103
fontSize={16}
105104
/>
105+
{/* <Button
106+
color="primary"
107+
aria-label="Add"
108+
type="submit"
109+
// disabled={!this.state.propKey || !this.state.propType}
110+
variant="contained"
111+
size="large"
112+
className={classes.addProp}
113+
></Button> */}
106114
</div>
107115
);
108116
}

src/public/styles/style.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ RIGHT COLUMN
244244
transition: width 250ms ease-in-out;
245245
width: 100%;
246246
height: 33%;
247+
min-height: 260px;
247248
/* display: flex;
248249
flex-direction: row; */
249250
background-color: #fcfcfc;

src/utils/componentReducer.util.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,6 @@ export const updateCode = (
358358
comp.changed = false;
359359
}
360360
});
361-
console.log('code ', code);
362-
363361
return {
364362
...state,
365363
components: componentsCopy,

0 commit comments

Comments
 (0)