INL / corpus-frontend

BlackLab Frontend, a feature-rich corpus search interface for BlackLab.
16 stars 7 forks source link

order of HitContextComponents is off (inside HitRowDetails) #521

Closed fadhleryani closed 1 month ago

fadhleryani commented 2 months ago

I'm guessing this is being controlled by HitContext.vue, but couldn't figure out how to fix it.

For reference, this is what the full text looks like in the proper order, but in rendering (see screenshot and html below) it seems the 'after' is displayed first, followed by the 'hit', then the 'before':

Nowadays , the UAE country has much trouble with social media around the community anywhere in places . However , social media is a huge group of technologies which controls the network , but it is dangerous for our mind and health . Also , it can affect our children using phones , video games and computers . To begin with , social media is a large group of societies that people can work with . Unfortunately , it is not good for children over 12 using mobiles ; maybe it will damage their mind , and they will lose their life like other children . Parents would rather their children use their own social media because they will meet new strangers on their Facebook , Twitter and Snapchat . Moreover , they will lose their society and also their life too . Being in society , which is a group of people , most of the young people who usually use social media are not using it for real , for necessity or for any subject ; only they take it for fun and for what comes with it . At least , the government should ban some social media for the next generation because of these issues .

Screenshot 2024-08-13 at 18 39 51

…for children over 12 using mobiles maybe it will damage their mind and they will lose their life like other children Parents would rather their children use their own social media because they will meet new strangers on their Facebook Twitter and Snapchat Moreover they will lose their society and <!----> <!---->good <!----> <!---->a huge group of technologies which controls the network but it is dangerous for our mind and health Also it can affect our children using phones video games and computers To begin with social media is a large group of societies that people can work with Unfortunately it is not…

jan-niestadt commented 1 month ago

It seems like the larger snippet is being displayed as if it were right-to-left text.

I would use Vue devtools to figure out if the correct text direction is being passed to the HitRowDetails component.