Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Mar 9, 2021. It is now read-only.

Commit 1185f0d

Browse files
author
z
committed
minor changes in width
1 parent 4839c24 commit 1185f0d

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

components/events/event-card.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,23 +88,23 @@ export default props => (
8888
</CardTitle>
8989
<Box fontSize={[12, 14, 16]} className="secondaryText" px={[2]} my={[1, 1, 0]}>
9090
<LocationIcon className="icons" />
91-
<span>{props.location}</span>
91+
<span>{truncateString(props.location, 55)}</span>
9292
</Box>
9393
<Box px={2} pb={[2, 1]}>
9494
<Flex wrap>
95-
<Box fontSize={[12, 14, 16]} width={[1, 1, 0.33]} className="secondaryText" pr={1} mr={[0]} my={[1, 1, 0]}>
95+
<Box fontSize={[12, 14, 16]} width={[1, 1, 0.38]} className="secondaryText" pr={1} mr={[0]} my={[1, 1, 0]}>
9696
<TimeIcon className="icons" />
9797
<span>
9898
{props.tense === 'past'
9999
? format(props.time, "ddd MMM Do 'YY")
100-
: format(props.time, "h:mm A, ddd MMM Do 'YY")}
100+
: format(props.time, "ddd MMM Do 'YY, h:mm A")}
101101
</span>
102102
</Box>
103-
<Box fontSize={[12, 14, 16]} width={[1, 1, 0.25]} className="secondaryText" pr={1} mx={[0]} my={[1, 1, 0]}>
103+
<Box fontSize={[12, 14, 16]} width={[1, 1, 0.24]} className="secondaryText" pr={1} mx={[0]} my={[1, 1, 0]}>
104104
<AttendeesIcon className="icons" />
105105
<span>{props.tense === 'past' ? `${props.attendees} attended` : `${props.attendees} attending`}</span>
106106
</Box>
107-
<Box fontSize={[12, 14, 16]} width={[1, 1, 0.25]} className="secondaryText" pr={1} mx={[0]} my={[1, 1, 0]}>
107+
<Box fontSize={[12, 14, 16]} width={[1, 1, 0.21]} className="secondaryText" pr={1} mx={[0]} my={[1, 1, 0]}>
108108
{props.online ? <StreamIcon className="icons" /> : <TicketIcon className="icons" />}
109109
<span>{props.online ? 'Free session' : 'Free entry'}</span>
110110
</Box>

pages/events.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ export default class Events extends React.Component {
8888
image={imageSrc ? imageSrc[1] : imagePlaceholderURL}
8989
name={event.name}
9090
location={event.venue ? event.venue.name : 'Online'}
91+
online={!event.venue}
9192
time={event.time}
9293
attendees={event.yes_rsvp_count}
9394
tense={event.status}

0 commit comments

Comments
 (0)