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;
|
flex-direction: column;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
|
.JobName {
|
||||||
|
align-items: center;
|
||||||
|
display: flex;
|
||||||
|
gap: $unit-half;
|
||||||
|
padding: $unit 0 $unit * 2;
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
font-size: $font-medium;
|
font-size: $font-medium;
|
||||||
font-weight: $medium;
|
font-weight: $medium;
|
||||||
padding: $unit 0 $unit * 2;
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
width: $unit-4x;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
select {
|
select {
|
||||||
|
|
|
||||||
|
|
@ -146,7 +146,13 @@ const JobSection = (props: Props) => {
|
||||||
ref={selectRef}
|
ref={selectRef}
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
|
<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>
|
<h3>{party.job ? party.job.name[locale] : t('no_job')}</h3>
|
||||||
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<ul className="JobSkills">
|
<ul className="JobSkills">
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue