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

Commite94b95c

Browse files
committed
fix footer height
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
1 parent9aa6a1b commite94b95c

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,12 @@ const Summary = (props: Props) => (
102102
</div>
103103
</div>
104104

105-
<divcss={styles.footer}>
105+
<footercss={styles.footer}>
106106
{/* TODO Add back button */}
107107
<Buttontype="primary"onClick={props.onNext}>
108108
Start
109109
</Button>
110-
</div>
110+
</footer>
111111
</div>
112112
)
113113

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const styles = {
5151
flexDirection:'row'as'row',
5252
justifyContent:'space-between',
5353
alignItems:'center',
54-
height:'2rem',
54+
height:theme['$footer-height'],
5555
backgroundColor:'black',
5656
fontSize:'1rem',
5757
lineHeight:'1rem',
@@ -70,21 +70,21 @@ const styles = {
7070
right:0,
7171
zIndex:1000,
7272
},
73-
processes:{
73+
processes:(theme:Theme)=>({
7474
padding:'0 1rem',
7575
position:'fixed'as'fixed',
76-
bottom:'2rem',
76+
bottom:theme['$footer-height'],
7777
left:0,
7878
right:0,
7979
top:'auto',
80-
},
81-
testMessage:{
80+
}),
81+
testMessage:(theme:Theme)=>({
8282
position:'absolute'as'absolute',
8383
top:'auto',
84-
bottom:'2rem',
84+
bottom:theme['$footer-height'],
8585
left:'5px',
8686
right:'5px',
87-
},
87+
}),
8888
}
8989

9090
interfacePageProps{
@@ -163,7 +163,7 @@ const TutorialPage = (props: PageProps) => {
163163
/>
164164
</div>
165165
) :(
166-
<divcss={styles.footer}>
166+
<footercss={styles.footer}>
167167
{/* Process Modal */}
168168
{processes.length>0&&(
169169
<divcss={styles.processes}>
@@ -216,7 +216,7 @@ const TutorialPage = (props: PageProps) => {
216216
<StepProgresscurrent={stepIndex+1}max={level.steps.length}/>
217217
) :null}
218218
</div>
219-
</div>
219+
</footer>
220220
)}
221221
<SideMenuvisible={menuVisible}toggleVisible={setMenuVisible}page={page}setPage={setPage}/>
222222
</div>

‎web-app/src/styles/theme.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ const theme = {
143143
'$shadow-3-right':'4px 0px 10px 0px rgba(0, 0, 0, 0.1)',
144144
'$shadow-3-down':'0px 4px 10px 0px rgba(0, 0, 0, 0.1)',
145145
'$shadow-3-left':'-4px 0px 10px 0px rgba(0, 0, 0, 0.1)',
146-
'$footer-height':'3rem',
146+
'$footer-height':'2.2rem',
147147
'$nav-height':'2rem',
148148
}
149149

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp