Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
rk4718
wacc_26_web_client
Commits
7f2a0d07
Commit
7f2a0d07
authored
Mar 12, 2020
by
Matej Genci
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better CSS for the app
parent
d21de047
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
10 deletions
+39
-10
src/App.css
src/App.css
+31
-4
src/App.js
src/App.js
+1
-1
src/view/CodeEditor.js
src/view/CodeEditor.js
+4
-2
src/view/UserIO.js
src/view/UserIO.js
+3
-3
No files found.
src/App.css
View file @
7f2a0d07
.App
{
body
{
background-color
:
#282c34
;
color
:
white
;
justify-content
:
center
;
color
:
white
;
}
.App
{
margin
:
50px
20px
0px
20px
;
}
.App-code-editors
{
display
:
flex
;
margin-top
:
10px
;
width
:
auto
;
}
.tree-wrapper
{
background
:
white
;
margin-top
:
10px
;
height
:
20em
;
}
.ace-editor
{
width
:
auto
;
padding-right
:
5px
;
}
.user-io
{
width
:
auto
;
}
.user-io-input
{
width
:
auto
;
}
.user-io-output
{
width
:
auto
;
}
.warning
{
.warning
{
background
:
rgba
(
255
,
50
,
50
,
0.1
);
position
:
absolute
;
}
\ No newline at end of file
src/App.js
View file @
7f2a0d07
...
...
@@ -69,7 +69,7 @@ class App extends React.Component {
readOnly
=
{
true
}
/
>
<
/div
>
<
div
id
=
"
tree
W
rapper
"
style
=
{{
width
:
'
50em
'
,
height
:
'
20em
'
,
background
:
'
white
'
}}
>
<
div
className
=
"
tree
-w
rapper
"
>
<
Tree
data
=
{
this
.
state
.
graphData
}
orientation
=
"
vertical
"
/>
...
...
src/view/CodeEditor.js
View file @
7f2a0d07
...
...
@@ -18,7 +18,7 @@ class CodeEditor extends React.Component {
// Render editor
render
()
{
return
(
<
div
>
<
div
className
=
"
ace-editor
"
>
{
this
.
heading
()}
<
AceEditor
mode
=
"
java
"
...
...
@@ -26,10 +26,12 @@ class CodeEditor extends React.Component {
className
=
"
aceeditor
"
onChange
=
{(
newValue
)
=>
{
if
(
this
.
props
.
onCodeChange
!==
undefined
)
this
.
props
.
onCodeChange
(
newValue
)
}}
value
=
{
this
.
props
.
value
}
markers
=
{
this
.
props
.
markers
}
readOnly
=
{
this
.
props
.
readOnly
}
editorProps
=
{{
$blockScrolling
:
true
}}
/
>
<
/div
>
...
...
src/view/UserIO.js
View file @
7f2a0d07
...
...
@@ -22,10 +22,10 @@ class UserIO extends React.Component {
render
()
{
return
(
<
div
className
=
"
user
IO
"
>
<
textarea
value
=
{
this
.
state
.
programOutput
}
/
>
<
div
className
=
"
user
-io
"
>
<
textarea
className
=
"
user-io-output
"
value
=
{
this
.
state
.
programOutput
}
/
>
<
div
className
=
"
user
IO
-input
"
>
<
div
className
=
"
user
-io
-input
"
>
<
input
value
=
{
this
.
state
.
programInput
}
onChange
=
{
this
.
onInputChange
}
><
/input
>
<
button
type
=
"
submit
"
>
submit
<
/button
>
<
/div
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment