Skip to content

Commit

Permalink
Undo expanding daydescription for MFP by default
Browse files Browse the repository at this point in the history
  • Loading branch information
norbye committed Aug 9, 2023
1 parent c0e33ee commit 8e0afae
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion components/EventsListView/CollapsibleItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ const CollapsibleItem: React.FC<PropsWithChildren<Props>> = ({
: { height: minHeight || "0px" }
}
>
<div className={styles.collapsibleItem} ref={contentRef}>
<div
className={styles.collapsibleItem}
style={{ minHeight: minHeight }}
ref={contentRef}
>
{children}
</div>

Expand Down
2 changes: 1 addition & 1 deletion components/EventsListView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const EventsListView: React.FC<EventsListViewProps> = ({
{day.description && (
<CollapsibleItem
title=""
minHeight={expandDayDescriptionsByDefault ? undefined : "80px"}
minHeight={expandDayDescriptionsByDefault ? undefined : "70px"}
initiallyOpen={expandDayDescriptionsByDefault}
>
<div className={styles.description}>
Expand Down
3 changes: 2 additions & 1 deletion components/EventsListView/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
background-color: var(--day-description);
font-size: 1em;
padding: 0.8em;
min-height: inherit;
}

.description > p {
Expand All @@ -73,6 +74,6 @@
position: absolute;
top: 0;
left: 0;
height: 100%;
height: inherit;
width: 100%;
}
1 change: 0 additions & 1 deletion pages/masterfadderperioden.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ export const Events: NextPage<EventsProps> = ({ dayDescriptions }) => {
isLoadingEvents={isLoading}
events={events}
dayDescriptions={dayDescriptions}
expandDayDescriptionsByDefault
/>
</InfoSectionWrapper>
</>
Expand Down

0 comments on commit 8e0afae

Please sign in to comment.