Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Popup Restyling #191

Closed
wants to merge 3 commits into from
Closed

Popup Restyling #191

wants to merge 3 commits into from

Conversation

stewartkwokca
Copy link
Contributor

Fix: popup cards

Closes #180

Fixed horizontal URL overflow (removed horizontal scroll bars)
Added vertical scrollbar for long cards
Fixed extreme graphic cutoffs (now fit to card)
Small component rearrangement

Fixes:
 * Added max height of popup, so scrollbar appears when content exceeds max
 * Added URL wraparound (no overflow)
 * Slightly rearranged components for better visual appeal (e.g. made recording separate section from slides)
@@ -156,7 +156,7 @@ const PopUp = ({ event, close }: { event: CyaneaEvent; close: () => void }) => {
<div className={popUpStyle["date"]}>{formatEventDate(event)}</div>
<div className={popUpStyle["location"]}>{event.location}</div>
<div className={styles.tags}>
<span>Tags: </span>
<div>Tags:</div>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason this isn't a <div><span>?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really. Just changed it to a <div><span>.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think @Aplet123 was trying to say that i should be <div className=...><span> rather than changing the inner <div> to a <div> + <span>, @stewartkwokca.

Copy link
Contributor Author

@stewartkwokca stewartkwokca Jun 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, maybe I'm confused but I don't think the span ever had any classes before? I just wanted to move it onto its own line to be consistent with everything else. Which classes were I supposed to include?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will work on cards a little more first

@bliutech bliutech deleted the popup_restyling branch September 19, 2024 02:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix Popups on Events
3 participants