File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 1- // import '@alifd/next/dist/next.css'
1+ import '@alifd/next/dist/next.css'
22import { configure } from '@storybook/react'
33import '../src/styles/index.css'
44
Original file line number Diff line number Diff line change @@ -12,12 +12,16 @@ interface Props {
1212
1313const styles = {
1414 page : {
15- width : window . innerWidth ,
16- height : window . innerHeight ,
15+ margin : 0 ,
16+ width : window . innerWidth - 20 , // 220
17+ height : window . innerHeight - 20 , // 655
1718 backgroundColor : 'white' ,
1819 } ,
1920}
2021
22+ console . log ( 'page styles' )
23+ console . log ( JSON . stringify ( styles . page ) )
24+
2125const Routes = ( { state } : Props ) => {
2226 // TODO: refactor cond to user <Router><Route> and accept first route as if/else if
2327 return (
Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ import ReactDOM from 'react-dom'
33import App from './App'
44
55// base styles
6+ // TODO: must be a better way to load @alifd styles
7+ // currently these are loaded in src/editor/ReactWebView.ts as well
8+ import '@alifd/next/dist/next.css'
69import './styles/index.css'
710
811ReactDOM . render ( < App /> , document . getElementById ( 'root' ) as HTMLElement )
You can’t perform that action at this time.
0 commit comments