Add mobile styles to the event card #190

Merged
a3thakra merged 3 commits from adi-mobile-events-card into main 2021-08-28 15:56:25 -04:00
Owner
closes #160 closes #154 https://csclub.uwaterloo.ca/~a3thakra/csc/adi-mobile-events-card/
a3thakra added 2 commits 2021-08-27 23:32:19 -04:00
continuous-integration/drone/push Build is passing Details
0008d9e914
Misc css fixes
continuous-integration/drone/push Build is passing Details
8ed72bf61b
Mobile event card
a258wang reviewed 2021-08-28 00:01:32 -04:00
@ -35,0 +54,4 @@
className={[
styles.content,
showDescription ? styles.mobileShowDescriptionContent : "",
].join(" ")}
Owner

Would something like this work? (I don't know if it's any cleaner/better than what we already have though...)

className=`${styles.content} ${showDescription ? styles.mobileShowDescriptionContent : ""}`
Would something like this work? (I don't know if it's any cleaner/better than what we already have though...) ``` className=`${styles.content} ${showDescription ? styles.mobileShowDescriptionContent : ""}` ```
Author
Owner

it kinda results in a lot of nested ${} which i kinda dont like lol

it kinda results in a lot of nested ${} which i kinda dont like lol
Author
Owner

the only clean way would be to use the classnames library 🤷‍♂️

the only clean way would be to use the classnames library 🤷‍♂️
a3thakra marked this conversation as resolved
a258wang reviewed 2021-08-28 00:04:17 -04:00
@ -3,1 +5,4 @@
export function Image(props: ImgHTMLAttributes<HTMLImageElement>) {
const classes = props.className
? [props.className, styles.image]
: [styles.image];
Owner

Similar to line 57 of components/EventCard.tsx, not sure if the suggestion there would be helpful here or not.

Similar to line 57 of `components/EventCard.tsx`, not sure if the suggestion there would be helpful here or not.
Author
Owner

same as above

same as above
a3thakra marked this conversation as resolved
Owner

The mobile EventCard looks a little funny on iPad...

The mobile EventCard looks a little funny on iPad...
a3thakra added 1 commit 2021-08-28 15:52:21 -04:00
continuous-integration/drone/push Build is passing Details
c6df3604e4
Restrict poster width to 300px on mobile screens
a3thakra merged commit 6b88cf308b into main 2021-08-28 15:56:25 -04:00
a3thakra deleted branch adi-mobile-events-card 2021-08-28 15:56:30 -04:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: www/www-new#190
No description provided.