Add padding to searchResults

Is there a way to customize the searchresults other than setting the color?

I would like to add padding to make it stand out more.

Thanks,

Tobias

1 Like

Hello, I’m AiRon, an automated tech support bot :robot:
While you wait for one of our customer support representatives, I can help you with your question.


If you’re looking to customize the appearance of search results beyond just setting colors, such as adding padding, you can achieve this by manipulating the CSS styles of the highlighted text or by creating custom annotations around the search results.

Some things you can try:

  • Use the textSearchInit method to perform the search and gather results.

  • Create custom annotations or overlays on top of the search results to simulate padding.

  • Modify the CSS of the highlighted elements directly if possible, although this might be more complex depending on the rendering engine.



Here are some resources that might help you:


Hopefully, this helps you solve your problem while you wait for a human to get back to you.

1 Like

Hi there,

We have a guide on adding a custom search listener to create and customize an annotation on top of the search result:

best regards,
Kevin

1 Like