Add job to read-only display

This commit is contained in:
Justin Edmund 2023-01-22 22:48:50 -08:00
parent fefcd91290
commit d5dda428cf
2 changed files with 20 additions and 4 deletions

View file

@ -28,10 +28,20 @@
flex-direction: column; flex-direction: column;
width: 100%; width: 100%;
h3 { .JobName {
font-size: $font-medium; align-items: center;
font-weight: $medium; display: flex;
gap: $unit-half;
padding: $unit 0 $unit * 2; padding: $unit 0 $unit * 2;
h3 {
font-size: $font-medium;
font-weight: $medium;
}
img {
width: $unit-4x;
}
} }
select { select {

View file

@ -146,7 +146,13 @@ const JobSection = (props: Props) => {
ref={selectRef} 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"> <ul className="JobSkills">