- added aspect-ratio for bando hero image;

This commit is contained in:
Vitalii Kiiko
2024-10-23 12:42:53 +02:00
parent b6a4c92943
commit 78df0a1e52
5 changed files with 20 additions and 9 deletions

View File

@@ -219,8 +219,11 @@ const BandoViewBeneficiario = () => {
const bandoId = getBandoId();
storeSet.main.setAsyncRequest();
BandoService.getBando(bandoId, getBandoCallback, errGetBandoCallback);
ApplicationService.getApplications(getApplCallback, errGetApplCallback, [['callId', bandoId]])
}, [id]);
ApplicationService.getApplications(getApplCallback, errGetApplCallback, [
['callId', bandoId],
['companyId', chosenCompanyId]
])
}, [id, chosenCompanyId]);
return (
<div className="appPage">
@@ -244,10 +247,10 @@ const BandoViewBeneficiario = () => {
{!isAsyncRequest && !isEmpty(data)
? <div className="appPage__content">
{!isEmpty(data.images)
? <picture className="appPageSection__hero">
? <div><picture className="appPageSection__hero">
<source srcSet={data.images[0] ? data.images[0].filePath : ''}/>
<img src={data.images[0] ? data.images[0].filePath : ''} alt={data.name}/>
</picture> : null}
</picture></div> : null}
<div className="appPageSection__withBorder">
<h2>{__('Descrizione breve', 'gepafin')}</h2>