Closed UM-Li closed 2 years ago
It looks fine on my side in the demo (see https://probberechts.github.io/hexo-theme-cactus/cactus-dark/public/search/). Which browser and version do you use?
Hi, I'm using Firefox 85.0. From what I can see this bug is also present in the Cactus Dark demo.
The search functionality presents results in two different ways when the paragraph is too long:
...
at the end, in which case the bottom line is displayed correctly;As far as I have tested this bug only happens when there is no truncation.
Confirm the same bug and I think it's related to substr()
in search.js
.
It seems that we should use substring()
here?
I tested on both desktop and mobile versions and got the same result.