• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Can't fix Cant search on templates from mobile device

Affected version
2.0
#1
Hi,

When I try to perform a search from a mobile device in the templates, a strange error appears.


Steps to reproduce on mobile device:

Open for example, the template name "account_avatar.less"

Go to the menu of the "3 points" (on chrome for android) and click on search.

Search, for example the word "none" and nothing appears.

Now, scroll to the bottom of the template and search again.

Now 3 results appear.

Regards
 

Attachments

Chris D

XenForo developer
Staff member
#2
Unfortunately this is just how the search in CodeMirror works. On a traditional browser you can activate the native Code Mirror search with Ctrl/Cmd+F.

The reason it behaves like this is because Code Mirror only renders a very small visible portion of the code at a time for performance reasons. If you remove that limitation then unfortunately it would cause major performance issues, preventing you from using it at all.

Generally editing templates via a mobile isn't really recommended.