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

Commit9aa6a1b

Browse files
committed
fix width scroll issue (except review page)
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
1 parentffac6b4 commit9aa6a1b

File tree

20 files changed

+45
-65
lines changed

20 files changed

+45
-65
lines changed

‎src/commands.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ export const createCommands = ({ extensionPath, workspaceState }: CreateCommandP
2828
return{
2929
// initialize
3030
[COMMANDS.START]:async()=>{
31-
console.log('start')
3231
if(webview&&webview.state.loaded){
3332
webview.createOrShow()
3433
}else{

‎web-app/.storybook/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import{configure}from'@storybook/react'
2-
import'../src/styles/index.css'
2+
import'../src/styles/reset.css'
33

44
// setup acquireVsCodeApi mock
55
//@ts-ignore

‎web-app/src/App.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ import Routes from './Routes'
1010
constApp=()=>(
1111
/*@ts-ignore invalid in enUS locale typings for @alifd/next@1.20.20 https://github.com/alibaba-fusion/next/commit/e3b934b */
1212
<ConfigProviderlocale={enUS}>
13-
<ErrorBoundary>
14-
<Workspace>
13+
<Workspace>
14+
<ErrorBoundary>
1515
<ThemeProvidertheme={theme}>
1616
<Routes/>
1717
</ThemeProvider>
18-
</Workspace>
19-
</ErrorBoundary>
18+
</ErrorBoundary>
19+
</Workspace>
2020
</ConfigProvider>
2121
)
2222

‎web-app/src/components/Error/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ const styles = {
1414
alignItems:'center'as'center',
1515
border:`0.5rem solid${theme['$color-error-2']}`,
1616
padding:'1rem',
17-
width:'100vw',
17+
width:'100%',
18+
maxWidth:'100%',
1819
height:'100%',
1920
}),
2021
content:(theme:Theme)=>({

‎web-app/src/components/Workspace/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import*asReactfrom'react'
22
import{css,jsx}from'@emotion/core'
3-
import{useWindowResize}from'./resize'
43
import{Theme}from'../../styles/theme'
54

65
interfaceProps{
@@ -13,13 +12,14 @@ const styles = {
1312
position:'relative'as'relative',
1413
margin:0,
1514
width:'100vw',
15+
maxWidth:'100%',
1616
backgroundColor:theme['$color-white'],
17+
overflow:'auto',
1718
}),
1819
}
1920

2021
constWorkspace=({ children}:Props)=>{
21-
constdimensions=useWindowResize()
22-
return<divcss={{ ...styles.page, ...dimensions}}>{children}</div>
22+
return<divcss={styles.page}>{children}</div>
2323
}
2424

2525
exportdefaultWorkspace

‎web-app/src/components/Workspace/resize.ts

Lines changed: 0 additions & 26 deletions
This file was deleted.

‎web-app/src/containers/Loading/LoadingPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const styles = {
1515
flexDirection:'column'as'column',
1616
alignItems:'center',
1717
justifyContent:'center',
18-
width:'100vw',
18+
width:'100%',
1919
},
2020
}
2121

‎web-app/src/containers/Loading/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const styles = {
1717
alignItems:'center'as'center',
1818
justifyContent:'center'as'center',
1919
height:'100%',
20-
width:'100vw',
20+
width:'100%',
2121
},
2222
processes:{
2323
padding:'0 1rem',

‎web-app/src/containers/SelectTutorial/SelectTutorialForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import TutorialFile from './forms/TutorialFile'
88
conststyles={
99
formWrapper:{
1010
padding:'1rem',
11-
width:'100vw',
11+
width:'100%',
1212
height:'auto',
1313
},
1414
}

‎web-app/src/containers/SelectTutorial/TutorialOverview/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const styles = {
1010
position:'relative'as'relative',
1111
display:'flex'as'flex',
1212
flexDirection:'column'as'column',
13-
width:'100vw',
13+
width:'100%',
1414
},
1515
nav:(theme:Theme)=>({
1616
height:theme['$nav-height'],

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp