Commit 15db2a3 1 parent ee96066 commit 15db2a3 Copy full SHA for 15db2a3
File tree 5 files changed +25
-2
lines changed
5 files changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import Editor from './components/Editor/Editor';
5
5
import ReactSplitPane from './components/SplitPane/SplitPane' ;
6
6
import SwaggerUI from 'swagger-ui-react' ;
7
7
import petStoreAPISpec from './assets/petstore.apispec.json' ;
8
+ import Header from './components/Header/Header' ;
8
9
import Footer from './components/Footer/Footer' ;
9
10
10
11
@@ -29,6 +30,7 @@ function App() {
29
30
} , [ leftMenuCollapse ] )
30
31
return (
31
32
< >
33
+ < Header />
32
34
< div className = "app-wrapper" >
33
35
< LeftMenu setContent = { setContent } leftMenuCollapse = { leftMenuCollapse } setLeftMenuCollapse = { setLeftMenuCollapse } />
34
36
< div className = "editor-page-wrapper" ref = { rightMenuRef } >
Original file line number Diff line number Diff line change
1
+ const Header :React . FC = ( { } ) => {
2
+ return (
3
+ < header >
4
+ < div className = "header-wrapper" >
5
+ < div > OpenAPI Specification editor</ div >
6
+ </ div >
7
+ </ header >
8
+ )
9
+ }
10
+
11
+ export default Header ;
Original file line number Diff line number Diff line change
1
+ header {
2
+ height : 100% ;
3
+ padding : 15px ;
4
+ border-bottom : 1px solid #d2d2d2 ;
5
+ .header-wrapper {
6
+ display : flex ;
7
+ align-items : center ;
8
+ }
9
+ }
Original file line number Diff line number Diff line change 1
1
.left-menu {
2
- height : 100vh ;
2
+ height : calc ( 100vh - 110 px ) ;
3
3
width : 350px ;
4
4
border-right : 1px dotted var (--color-background-border );
5
5
display : flex ;
Original file line number Diff line number Diff line change 9
9
@import " ./components/readfile" ;
10
10
@import " ./components/splitPane" ;
11
11
@import " ./components/editor/editor" ;
12
+ @import " ./components/header" ;
12
13
@import " ./components/footer" ;
13
14
14
15
.app-wrapper {
15
16
display : flex ;
16
- height : calc (100vh - 55 px );
17
+ height : calc (100vh - 110 px );
17
18
.editor-page-wrapper {
18
19
position :relative ;
19
20
width : calc (100vw - 350px );
You can’t perform that action at this time.
0 commit comments