shepherd icon indicating copy to clipboard operation
shepherd copied to clipboard

Arrow position's incorrect with custom tooltip size

Open anonimitoraf opened this issue 2 years ago • 3 comments

Thanks so much for this package!

I intend to have a custom width for my tooltips (e.g. 60% of parent) which I set via:

.shepherd-element {
  max-width: 60%;
}

When I do this though, the arrow gets misplaced image

I've also tested this out on a regular web app (i.e. non-mobile) viewport image

Is this the correct way to set the width?

anonimitoraf avatar Feb 26 '23 23:02 anonimitoraf

@anonimitoraf yes, I think that should work okay for setting the width. Is there a problem with it?

RobbieTheWagner avatar Mar 01 '23 13:03 RobbieTheWagner

I see, so the problem is the arrow, instead of pointing to the tooltip target, is shifted all the way to the right

anonimitoraf avatar Mar 01 '23 20:03 anonimitoraf

@anonimitoraf you would also need to adjust it's attachment placement. I wonder if this was using something like 'bottom-end'?

chuckcarpenter avatar Jun 28 '24 00:06 chuckcarpenter