-
-
Notifications
You must be signed in to change notification settings - Fork 565
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: #1348 Fixed the follow button movement UI #1383
fix: #1348 Fixed the follow button movement UI #1383
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 settings. |
components/account/AccountHeader.vue
Outdated
@@ -103,7 +103,7 @@ const isNotifiedOnPost = $computed(() => !!relationship?.notifying) | |||
<AccountHandle :account="account" /> | |||
</div> | |||
</div> | |||
<div absolute top-18 inset-ie-0 flex gap-2 items-center> | |||
<div absolute top-18 inset-ie-0 flex gap-2 justify-center> |
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.
items-center
here is correct. The issue is that the bell notification button is taller than the follow button. If the bell notification button size is reduced to match the follow button, then there will not be a pixel shift
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 the review!
I edited the commit and reverted the previous changes justify-center
back to item-center
I found out that the issue is resolved by changing the padding of bell button from 0.5 rem to 0.4 rem p2
to p1.6
but I am getting type check error in CI check. I am still working on the issue.
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.
I think you needed to add class="p1.6"
for this to work. I changed it back to p2
though and made the icon text-sm
so we have more coherent padding.
Edited the padding of the bell notification button to match with follow button
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!
I learned a lot and this was my first Open source project! |
@rkmdCodes it gets better and better! Welcome to Elk and OSS 🙌🏼 |
hi I am a new contributor and I have fixed the movement in follow button UI
Here is the Gif attached ...