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

SUL23-346 Show all published libguides grouped by their type #119

Merged
merged 2 commits into from
Mar 13, 2024

Conversation

pookmish
Copy link
Contributor

@pookmish pookmish commented Mar 8, 2024

READY FOR REVIEW

Summary

  • Group the guides by their type and loop through them.

Copy link

vercel bot commented Mar 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
su-library ✅ Ready (Inspect) Visit Preview Mar 8, 2024 6:30pm

{headingLevel === 3 && <h3 className="type-1">Course Guides</h3>}
<LibGuideSection heading="Course Guides" guides={courseGuides}/>
{[...groupedGuides.keys()].map(guideTopic => (
<div key={guideTopic}>
Copy link
Contributor

Choose a reason for hiding this comment

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

Add className="mb-40"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch. I just added space-y-40 to the parent via the node page component. See: https://github.com/SU-SWS/sulgryphon-nextjs/pull/119/files#diff-559377094eac85f2f0ebd97e64e9d47039be55d4ca58213b9db50a79c8347adeR67

Basically it's the same, but doesn't add bottom margin to the last group.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, I thought about that, but I noticed on my local that for some reason the last mb-40 isn't applied. It defaults to the mb-50 parent div. But this is good info.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ahh yeah, it basically results in the same outcome either way.

Copy link
Contributor

@mdyoung3 mdyoung3 Mar 8, 2024

Choose a reason for hiding this comment

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

I suspect the space-y-40 is safer. But I didn't see anything the tailwind docs that confirm that.

Choose a reason for hiding this comment

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

Yeah, I thought about that, but I noticed on my local that for some reason the last mb-40 isn't applied. It defaults to the mb-50 parent div. But this is good info.

Might be margin collapse. Now I'm off to figure out when I got subscribed to all the changes in this repo. 😆

Copy link
Contributor Author

Choose a reason for hiding this comment

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

🤣 Yeah that must be it. Only the best people are subscribed to this repo 😄

Copy link
Contributor

@mdyoung3 mdyoung3 Mar 8, 2024

Choose a reason for hiding this comment

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

LOL!

Well, appreciate your insight anyways, Eric.

Copy link

Choose a reason for hiding this comment

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

I love margin collapse. I feel it's underutilized and is the main difference between margin and padding. Now I'll see myself out 🚶‍♂️

Copy link
Contributor

Choose a reason for hiding this comment

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

I guess this thread is going to more people. lol! That's cool. I mean, I'm actually glad because I learn something today.

Copy link
Contributor

@mdyoung3 mdyoung3 left a comment

Choose a reason for hiding this comment

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

LGTM

@mdyoung3 mdyoung3 merged commit 7f6d281 into release-1.1.0 Mar 13, 2024
3 checks passed
@mdyoung3 mdyoung3 deleted the SUL23-346-grouped branch March 13, 2024 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants