Skip to content

Commit

Permalink
fix: title and location mobile alignment (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
samderanova committed Oct 31, 2023
1 parent e66f4ad commit 20b2f37
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,11 @@
.eventTitle {
font-size: 24px;
}

.mobileLocation {
text-align: left;

@include bootstrap.media-breakpoint-up(lg) {
text-align: right;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
import Image from "next/image";

import Accordion from "react-bootstrap/Accordion";
import Col from "react-bootstrap/Col";
import Container from "react-bootstrap/Container";
import Row from "react-bootstrap/Row";

import clip from "@/assets/images/clip.svg";

Expand Down Expand Up @@ -49,13 +51,20 @@ function ClipboardSchedule({ schedule }: ClipboardScheduleProps) {
eventKey={title}
className={styles.accordionItem}
>
<Accordion.Header className={styles.accordionHeader}>
<h3 className={styles.eventTitle}>{title}</h3>
{/* <span>{hosts?.join()}</span> */}
<span className="text-end ms-auto">
{location},{" "}
{dateTimeFormat.formatRange(startTime, endTime)}
</span>
<Accordion.Header>
<Row className="w-100">
<Col lg>
<h3 className={styles.eventTitle}>{title}</h3>
</Col>
{/* <span>{hosts?.join()}</span> */}

<Col lg className={styles.mobileLocation}>
<span>
{location},{" "}
{dateTimeFormat.formatRange(startTime, endTime)}
</span>
</Col>
</Row>
</Accordion.Header>
<Accordion.Body>{description}</Accordion.Body>
</Accordion.Item>
Expand Down

0 comments on commit 20b2f37

Please sign in to comment.