Add job to read-only display
This commit is contained in:
parent
fefcd91290
commit
d5dda428cf
2 changed files with 20 additions and 4 deletions
|
|
@ -28,10 +28,20 @@
|
|||
flex-direction: column;
|
||||
width: 100%;
|
||||
|
||||
h3 {
|
||||
font-size: $font-medium;
|
||||
font-weight: $medium;
|
||||
.JobName {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
gap: $unit-half;
|
||||
padding: $unit 0 $unit * 2;
|
||||
|
||||
h3 {
|
||||
font-size: $font-medium;
|
||||
font-weight: $medium;
|
||||
}
|
||||
|
||||
img {
|
||||
width: $unit-4x;
|
||||
}
|
||||
}
|
||||
|
||||
select {
|
||||
|
|
|
|||
|
|
@ -146,7 +146,13 @@ const JobSection = (props: Props) => {
|
|||
ref={selectRef}
|
||||
/>
|
||||
) : (
|
||||
<h3>{party.job ? party.job.name[locale] : t('no_job')}</h3>
|
||||
<div className="JobName">
|
||||
<img
|
||||
alt={party.job.name[locale]}
|
||||
src={`/images/job-icons/${party.job.granblue_id}.png`}
|
||||
/>
|
||||
<h3>{party.job ? party.job.name[locale] : t('no_job')}</h3>
|
||||
</div>
|
||||
)}
|
||||
|
||||
<ul className="JobSkills">
|
||||
|
|
|
|||
Loading…
Reference in a new issue