Is there a way I can shift position of an icon when the icon beside it is not visible?

Hey, so my icons to bookmark, share post and delete post are placed together.

  1. The delete option is visible only when current page user is current user.
  2. bookmark option is NOT visible when current page user is current user (because I don’t want to allow users to bookmark their own posts)

Now, this is how I have placed them:

When I look at page as ‘my posts’ I will not see the bookmark option:

As you can see, there is this huge gap. How can I make the delete icon shift when bookmark icon isn’t visible?

Or is there any other solution to this?

Can you swap the icons maybe? If the one is going to be invisible then the easiest solution could maybe just swap the trashcan with it. Then it won’t look odd.

There are other ways too but this was just one suggestion.

Want to learn more?

www.nocodeminute.com

Presenting

Hope that helps! :blush:

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.