-
Notifications
You must be signed in to change notification settings - Fork 20
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
fix: og image cards overflow #89
base: main
Are you sure you want to change the base?
Conversation
components/OgImage/OgImageNuxter.vue
Outdated
@@ -40,7 +40,7 @@ const format = useNumberFormatter() | |||
</svg> | |||
<div class="font-medium text-4xl pl-2 pt-1">{{ format(contributor.score) }}</div> | |||
</div> | |||
<div class="flex flex-row text-gray-400 items-center pt-3 font-medium text-3xl"> | |||
<div class="flex flex-row text-[#94a3b8] items-center pt-3 font-medium text-3xl"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's the reason for not using tailwind colours?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright, ignore the previous response, I updated my branch from upstream and it seems like the tailwind colors issue has been resolved with some dependency updates before so I reverted the class changes from my PR
components/OgImage/OgImageNuxter.vue
Outdated
@@ -10,7 +10,7 @@ const format = useNumberFormatter() | |||
</script> | |||
|
|||
<template> | |||
<div class="flex flex-row justify-between w-full p-[38px] bg-gray-900"> | |||
<div class="flex flex-row justify-between w-full p-[38px] bg-[#0f172a]"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
π Linked issue
resolves #88
β Type of change
π Description
I'm not a Tailwind expert but it seems like the og module is not seeing the colors when using classes likebg-gray-900
,text-gray-400
so instead I used Arbitrary values. If someone knows how to make the color classes work the help is welcomed!And for fixing the overflowing I simply added the
overflow-hidden
tailwing class to each cardThe image below is how it looks with the changes