Skip to content
Snippets Groups Projects
Commit 115c05f3 authored by René Rösner's avatar René Rösner
Browse files

Feat: Resource List/Detail: Made logos optional, style fixes(planning#423)

parent b9816db5
No related branches found
No related tags found
1 merge request!13Entwicklungsportal: MVP Follow Up
......@@ -25,9 +25,9 @@ export default ({ title, shortDescription, img, children }: HeaderOptions) => {
<header className={'flex items-end space-x-6'}>
{img && (
<img
src={img.src}
alt={img.alt ? img.alt : `${title} Logo`}
className={'w-24 h-24'}
src={img.src ? img.src : ``}
alt={img.alt ? img.alt : `${title} Logo`}
/>
)}
<h1 className="text-5xl font-extrabold tracking-tight text-gray-900">
......
......@@ -25,8 +25,8 @@ export default function ({ service }) {
mailTo: service.contactInformation.fields.eMail,
}}
img={{
src: service.logo.fields.file.url,
alt: service.logo.fields.name,
src: service?.logo.fields.file.url,
alt: service?.logo.fields.name,
}}
title={service.name}
shortDescription={documentToHtmlString(service.shortDescription)}
......
......@@ -181,9 +181,9 @@ export default function ({ services }) {
<div className="flex space-x-3">
<div className="flex-shrink-0">
<img
className="h-10 w-15"
src={service.logo.fields.file.url}
alt={service.logo.fields.name}
className="max-w-[100px] h-10"
src={service?.logo.fields.file.url}
alt={service?.logo.fields.name}
/>
</div>
<div className="min-w-0 flex-1">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment