Extend performer description open button only to title

This commit is contained in:
2022-07-04 16:33:29 +03:00
parent ebfa9df42f
commit 13fc89a456
2 changed files with 5 additions and 7 deletions

View File

@@ -42,11 +42,7 @@ const Performers = () => {
<section className={shared.page}>
<h1>Esiintyjät</h1>
{performers.map((p) => (
<div
className={styles.performerContainer}
onClick={() => togglePerformerDesc(p.id)}
key={p.id}
>
<div className={styles.performerContainer} key={p.id}>
<Image
className={styles.performerImage}
src={p.imagePath}
@@ -56,7 +52,10 @@ const Performers = () => {
alt={p.name + ' image'}
/>
<div className={styles.performerTextContainer}>
<div className={styles.performerTitle}>
<div
className={styles.performerTitle}
onClick={() => togglePerformerDesc(p.id)}
>
<h2>{p.name}</h2>
<button className={shared.openingChevron}>
{p.showDesc ? (

View File

@@ -3,7 +3,6 @@
justify-content: flex-start;
align-items: flex-start;
width: 90%;
cursor: pointer;
p {
padding-left: 1rem;