-
-
Notifications
You must be signed in to change notification settings - Fork 554
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
feat: show relationship badge and remove hover-only label on follow button #2397
base: main
Are you sure you want to change the base?
Conversation
Run & review this pull request in StackBlitz Codeflow. |
✅ Deploy Preview for elk-docs canceled.
|
✅ Deploy Preview for elk-zone ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
…over-only label on follow button
493d1c7
to
d9fa908
Compare
Why not putting the relationship badge aside the username? |
@edimitchel Because I felt a bit crowded when the account had many badges or the name was long, also it can mimic the other platform. But maybe it was not necessary, and better to place the same position as other badges for consistency. Let me adjust the position. |
import type { mastodon } from 'masto' | ||
|
||
defineProps<{ | ||
relationship?: mastodon.v1.Relationship |
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.
IMO this shouldn't be optional and rather the v-if should be applied outside of this component
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.
Thanks for your review. That makes sense. I changed it to be non-optional.
To preview the PR, you can visit, for example, https://deploy-preview-2397--elk-zone.netlify.app/universeodon.com/@[email protected] to see "Mutuals" badge. |
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.
LGTM!
resolve #1020
This PR implements two changes:
Examples
When the account follows you but you don't follow them:
When the account follows you and you follow them: