Can't fix Cant search on templates from mobile device

cimad

Member
Affected version
2.0
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

  • 20171113_193015.webp
    20171113_193015.webp
    37.3 KB · Views: 9
  • 20171113_192923.webp
    20171113_192923.webp
    35.9 KB · Views: 8
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.
 
Back
Top Bottom