Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit360abec

Browse files
committed
fix loading of styles
1 parent058c8b6 commit360abec

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

‎web-app/.storybook/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//import '@alifd/next/dist/next.css'
1+
import'@alifd/next/dist/next.css'
22
import{configure}from'@storybook/react'
33
import'../src/styles/index.css'
44

‎web-app/src/Routes.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,16 @@ interface Props {
1212

1313
conststyles={
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+
2125
constRoutes=({ state}:Props)=>{
2226
// TODO: refactor cond to user <Router><Route> and accept first route as if/else if
2327
return(

‎web-app/src/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ import ReactDOM from 'react-dom'
33
importAppfrom'./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'
69
import'./styles/index.css'
710

811
ReactDOM.render(<App/>,document.getElementById('root')asHTMLElement)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp