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

Commite37a806

Browse files
committed
replace icon with text
1 parent4d5ea7b commite37a806

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

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

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import*asReactfrom'react'
22
import{Balloon}from'@alifd/next'
33
importButtonfrom'../Button'
4-
importIconfrom'../Icon'
54

65
conststyles={
76
iconButton:{
@@ -10,9 +9,12 @@ const styles = {
109
alignItems:'center',
1110
width:30,
1211
height:30,
12+
fontSize:18,
13+
color:'grey',
1314
},
1415
balloonTitle:{
1516
marginTop:0,
17+
textAlign:'center'as'center',
1618
},
1719
balloonOptions:{
1820
display:'flex',
@@ -33,15 +35,11 @@ const StepHelp = (props: Props) => {
3335
props.onLoadSolution()
3436
}
3537
}
36-
constpromptLeft=(
37-
<Buttonstyle={styles.iconButton}>
38-
<Icontype="prompt"role="button"/>
39-
</Button>
40-
)
38+
constpromptLeft=<Buttonstyle={styles.iconButton}>i</Button>
4139
return(
42-
<Balloontrigger={promptLeft}align="l"alignEdgetriggerType="click"style={{width:300}}>
40+
<Balloontrigger={promptLeft}align="l"alignEdgetriggerType="click"style={{width:150}}closable={false}>
4341
<div>
44-
<h4style={styles.balloonTitle}>Stuck? Need help?</h4>
42+
<h4style={styles.balloonTitle}>Stuck?</h4>
4543
<divstyle={styles.balloonOptions}>
4644
<Buttontype="secondary"onClick={onClickHandler}disabled={loadedSolution}>
4745
Load Solution

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp