Skip to content

Commit

Permalink
update player image
Browse files Browse the repository at this point in the history
  • Loading branch information
wrrwrr111 committed Apr 6, 2021
1 parent 0557967 commit c2d24cb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/components/player-detail.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ const PlayerDetail = (props) =>{
const data = db.get('players').find({id}).value()
return(
isNur?<>
<div style={{height:64,display:'flex'}}>
<Image src={cdnServer+data.imgUrl} width={64} height={64} resizemode={'cover'}></Image>
<div style={{height:69,display:'flex'}}>
<Image src={cdnServer+data.imgUrl} width={63} height={69} resizemode={'cover'}></Image>
<div style={{display:'flex',height:64,flexDirection:'column',justifyContent:'space-between'}}>
<div style={{fontSize:20,fontWeight:700}}>{t(data.name)}</div>
<div style={{fontSize:20,fontWeight:700,color:'gray'}}>{t(data.charaName)}</div>
Expand All @@ -36,7 +36,7 @@ const PlayerDetail = (props) =>{
<SkillList skillList={data.skillList}></SkillList>
</>:<>
<div style={{height:144,display:'flex'}}>
<Image src={cdnServer+data.imgUrl} width={128} height={128} resizemode={'cover'}></Image>
<Image src={cdnServer+data.imgUrl} width={128} height={140} resizemode={'cover'}></Image>
<div style={{display:'flex',height:128,padding:24,flexDirection:'column',justifyContent:'space-between'}}>
<div style={{fontSize:20,fontWeight:700}}>{t(data.charaName)}</div>
<div style={{fontSize:20,fontWeight:700,color:'gray'}}>{data.charaName}</div>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/nurturing.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import Support from './support.js'

const {Column} = Table

const cdnServer = 'https://cdn.jsdelivr.net/gh/wrrwrr111/pretty-derby/public/'
const cdnServer = 'https://cdn.jsdelivr.net/gh/wrrwrr111/pretty-derby@master/public/'


const NurturingSupport = (props)=>{
Expand Down
4 changes: 2 additions & 2 deletions src/pages/nurturing2.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import Player from './player.js'
import Support from './support.js'


const cdnServer = 'https://cdn.jsdelivr.net/gh/wrrwrr111/pretty-derby/public/'
const cdnServer = 'https://cdn.jsdelivr.net/gh/wrrwrr111/pretty-derby@master/public/'


const Nurturing = () =>{
Expand Down Expand Up @@ -183,7 +183,7 @@ const Nurturing = () =>{
<div style={{display:'flex',justifyContent:'center'}}>
{player.id?
<img src={cdnServer+player.imgUrl} alt={player.imgUrl}
width={0.12*dynamicContentHeight} height={0.12*dynamicContentHeight}
width={0.12*dynamicContentHeight} height={0.131*dynamicContentHeight}
style={{float:'left',marginRight:'8px'}} onClick={showPlayer}></img>
:<Button className='add-player' type={'primary'} onClick={showPlayer}>{t('选择马娘')}</Button>
}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import PlayerDetail from '../components/player-detail.js'
// const CheckboxGroup = Checkbox.Group

// todo 提取出来
const cdnServer = 'https://cdn.jsdelivr.net/gh/wrrwrr111/pretty-derby/public/'
const cdnServer = 'https://cdn.jsdelivr.net/gh/wrrwrr111/pretty-derby@master/public/'

const PlayerCard = (props)=>{
const [isModalVisible, setIsModalVisible] = useState(false);
Expand Down

0 comments on commit c2d24cb

Please sign in to comment.