@@ -31,7 +31,9 @@ const Header = styled.div`
31
31
width: 100%;
32
32
background-color: ${ background } ;
33
33
color: ${ textColor } ;
34
+ padding: ${ remSize ( 12 ) } ;
34
35
padding-left: ${ remSize ( 32 ) } ;
36
+ z-index: 1;
35
37
` ;
36
38
37
39
const Footer = styled . div `
@@ -44,9 +46,10 @@ const Footer = styled.div`
44
46
` ;
45
47
46
48
const Content = styled . div `
49
+ z-index: 0;
50
+ margin-top: ${ remSize ( 16 ) } ;
47
51
` ;
48
52
49
- const f = x => x ;
50
53
51
54
const Screen = ( { children } ) => (
52
55
< div className = "fullscreen-preview" >
@@ -59,55 +62,60 @@ Screen.propTypes = {
59
62
60
63
const IDEViewMobile = ( props ) => {
61
64
// const
62
- // const {
63
- // preferences, ide, editorAccessibility, project, updateLintMessage, clearLintMessage, selectedFile, updateFileContent, files, closeEditorOptions, showEditorOptions, showKeyboardShortcutModal, setUnsavedChanges, startRefreshSketch, stopSketch, expandSidebar, collapseSidebar, clearConsole, console, showRuntimeErrorWarning, hideRuntimeErrorWarning
64
- // } = props;
65
+ const {
66
+ preferences, ide, editorAccessibility, project, updateLintMessage, clearLintMessage, selectedFile, updateFileContent, files, closeEditorOptions, showEditorOptions, showKeyboardShortcutModal, setUnsavedChanges, startRefreshSketch, stopSketch, expandSidebar, collapseSidebar, clearConsole, console, showRuntimeErrorWarning, hideRuntimeErrorWarning
67
+ } = props ;
65
68
66
69
const [ tmController , setTmController ] = useState ( null ) ;
67
70
68
71
return (
69
72
< Screen >
70
- < Header > < h1 > Mobile View</ h1 > </ Header >
73
+ < Header >
74
+ { /* <h1>Mobile View</h1> */ }
75
+ < h2 > { project . name } </ h2 >
76
+ < h3 > { selectedFile . name } </ h3 >
77
+ </ Header >
71
78
{ /* <div>
72
79
{ [preferences, ide, editorAccessibility, project, updateLintMessage, clearLintMessage, selectedFile, updateFileContent, files, closeEditorOptions, showEditorOptions, showKeyboardShortcutModal, setUnsavedChanges, startRefreshSketch, stopSketch, expandSidebar, collapseSidebar, clearConsole, console, showRuntimeErrorWarning, hideRuntimeErrorWarning]
73
80
.map(pr => <h5>{pr.toString()}</h5>) }
74
81
</div> */ }
75
82
76
- < Editor
77
- lintWarning = { props . preferences . lintWarning }
78
- linewrap = { props . preferences . linewrap }
79
- lintMessages = { props . editorAccessibility . lintMessages }
80
- updateLintMessage = { props . updateLintMessage }
81
- clearLintMessage = { props . clearLintMessage }
82
- file = { props . selectedFile }
83
- updateFileContent = { props . updateFileContent }
84
- fontSize = { props . preferences . fontSize }
85
- lineNumbers = { props . preferences . lineNumbers }
86
- files = { props . files }
87
- editorOptionsVisible = { props . ide . editorOptionsVisible }
88
- showEditorOptions = { props . showEditorOptions }
89
- closeEditorOptions = { props . closeEditorOptions }
90
- showKeyboardShortcutModal = { props . showKeyboardShortcutModal }
91
- setUnsavedChanges = { props . setUnsavedChanges }
92
- isPlaying = { props . ide . isPlaying }
93
- theme = { props . preferences . theme }
94
- startRefreshSketch = { props . startRefreshSketch }
95
- stopSketch = { props . stopSketch }
96
- autorefresh = { props . preferences . autorefresh }
97
- unsavedChanges = { props . ide . unsavedChanges }
98
- projectSavedTime = { props . project . updatedAt }
99
- isExpanded = { props . ide . sidebarIsExpanded }
100
- expandSidebar = { props . expandSidebar }
101
- collapseSidebar = { props . collapseSidebar }
102
- isUserOwner = { setTmController }
103
- clearConsole = { props . clearConsole }
104
- consoleEvents = { props . console }
105
- showRuntimeErrorWarning = { props . showRuntimeErrorWarning }
106
- hideRuntimeErrorWarning = { props . hideRuntimeErrorWarning }
107
- runtimeErrorWarningVisible = { props . ide . runtimeErrorWarningVisible }
108
- provideController = { setTmController }
109
- />
110
-
83
+ < Content >
84
+ < Editor
85
+ lintWarning = { props . preferences . lintWarning }
86
+ linewrap = { props . preferences . linewrap }
87
+ lintMessages = { props . editorAccessibility . lintMessages }
88
+ updateLintMessage = { props . updateLintMessage }
89
+ clearLintMessage = { props . clearLintMessage }
90
+ file = { props . selectedFile }
91
+ updateFileContent = { props . updateFileContent }
92
+ fontSize = { props . preferences . fontSize }
93
+ lineNumbers = { props . preferences . lineNumbers }
94
+ files = { props . files }
95
+ editorOptionsVisible = { props . ide . editorOptionsVisible }
96
+ showEditorOptions = { props . showEditorOptions }
97
+ closeEditorOptions = { props . closeEditorOptions }
98
+ showKeyboardShortcutModal = { props . showKeyboardShortcutModal }
99
+ setUnsavedChanges = { props . setUnsavedChanges }
100
+ isPlaying = { props . ide . isPlaying }
101
+ theme = { props . preferences . theme }
102
+ startRefreshSketch = { props . startRefreshSketch }
103
+ stopSketch = { props . stopSketch }
104
+ autorefresh = { props . preferences . autorefresh }
105
+ unsavedChanges = { props . ide . unsavedChanges }
106
+ projectSavedTime = { props . project . updatedAt }
107
+ isExpanded = { props . ide . sidebarIsExpanded }
108
+ expandSidebar = { props . expandSidebar }
109
+ collapseSidebar = { props . collapseSidebar }
110
+ isUserOwner = { setTmController }
111
+ clearConsole = { props . clearConsole }
112
+ consoleEvents = { props . console }
113
+ showRuntimeErrorWarning = { props . showRuntimeErrorWarning }
114
+ hideRuntimeErrorWarning = { props . hideRuntimeErrorWarning }
115
+ runtimeErrorWarningVisible = { props . ide . runtimeErrorWarningVisible }
116
+ provideController = { setTmController }
117
+ />
118
+ </ Content >
111
119
< Footer > < h1 > Bottom Bar</ h1 > </ Footer >
112
120
</ Screen >
113
121
) ;
0 commit comments