react-native-copilot icon indicating copy to clipboard operation
react-native-copilot copied to clipboard

Customizing Modal Dialog size and Highlighted Step

Open dualistique39 opened this issue 7 years ago • 7 comments

Copilot has been working great off the bat, but I need some guidance on how I am able to customize the size of the modal window that's being generated and the highlighted step. When there's a spot highlighted, there seems to be a few pixels added making the highlight not exact to my tabs.

Also, is there some options or some way I can determine the size of the modal. This comes an issue when I have a middle tab button highlighted, and my modal window is much smaller size it draws the modal to the right.

test

dualistique39 avatar Aug 31 '18 00:08 dualistique39

That's interesting. I had never tried using non-text elements in the tooltip.

The algorithm for computing the dimensions and the position of the modal lays here which obviously needs to be modified to achieve what you're looking for. We currently have no plans on that. PRs are welcome anyways.

mohebifar avatar Sep 14 '18 18:09 mohebifar

@mohebifar - Thanks for your comment and pointing out the algorithm. How about the highlighted "tab/icon" itself. You can see that it's off by a few pixels (from the results that I expect).

Would modifying this solve that problem?

dualistique39 avatar Sep 14 '18 18:09 dualistique39

Yes, looking at the screenshots you shared, it seems to be that OFFSET thing. If you'd like to make that customizable, PRs are welcome!

mohebifar avatar Sep 14 '18 18:09 mohebifar

@mohebifar is it possible to customize the highlighted window? Like adding a border?

dnlsandiego avatar Sep 27 '18 19:09 dnlsandiego

@mohebifar Running into the same issues. Any movement on this?

oliemansm avatar Nov 25 '19 16:11 oliemansm

Any updates on this topic?

ViniSchonardie avatar May 08 '20 12:05 ViniSchonardie

How to use different screen because when i use android app is lacked

pavandugariya avatar May 17 '23 06:05 pavandugariya