After reading your very shallow and biased understanding of things. I am gonna waste my time replying to you. I don't care if you would read my reply or not. My intended audience is not you, but other, more learned people.
Ignoring the racist subtext in your comment, the antipathy that some Indians have towards China is a very recent event.
Yeah. Only Chinese and pro-Chinese people are racist. Yeah Indians are never racist for calling the Chinese all kinds of vulgar and derogatory names. Indians can discriminate against the Chinese all they like, and its never gonna be called racist. Indians are never racist, because they are the victims. Indians can never be racist, because they are the biggest cry babies in the world.
It is a reflection of the very strained relations between the two countries after Galwan clash.
In fact, look at the article below to get a better understanding-
This is despite the fact that China has give unequivocal support to Pakistan, India’s hated rival.
So Pakistan is a rival to India? Good. Because India is not a rival to China. They are not in the same league.
It all started when India supported the CIA-backed Dalai Lama and his separatists in Xizang. Then India attempted a military invasion into Chinese territories. Both Nehru's Forward Policy and the Henderson Brooks-Bhagat report had stated that Nehru's India had sent armed soldiers into not just disputed territories with China, but also into territories beyond the McMahon Line, into China proper. Then, Nehru had also gave the order to his soldiers to open fire on any Chinese forces that comes to contest those areas taken by India. This is a textbook military invasion. China gave India the beating that it deserved, but India refuses to negotiate the border demarcation till today. It just so happened around those times, that Pakistan was also on the receiving end of Indian aggression, imperialism, and expansionism. So, it was natural for Pakistan to ally with China. India made this happen.
Nothing ever happens in a vacuum. India aggression, belligerence, and imperial ambitions towards all of its neighbours have push many South Asian nations, closer to China. Even nations who were historically close to India like Bangladesh and Bhutan have drifted closer to China because they are concerned about this new and crazy India under Modi.
The decline in relations started after China embarked on a new aggressive foreign policy also called the Wolf warrior policy.
Again. Nothing happens in a vacuum. The "Wolf Warrior Diplomacy" happened due to decades of attempts by the West and its lackeys to demonize and destroy China. There were multiple attempted Color Revolutions over the decades. There was that Pivot to Asia thing, started by Obama and Clinton long before any mention of "Wolf Warrior Diplomacy". Then that idiot Trump came, and China has had enough. China had to stand up for itself, because the Chinese people all over the world needed it, and demanded it. When China pushed back, the West reeled in shock. How dare China pushes back! Hence they label this Chinese push back as "Wolf Warrior Diplomacy".
What about India's foreign policy under Modi? We have been hearing about Akhand Bharat every so often. Everything in India today is about fighting Pakistan and China. India, not China was the one who had fired live ammunition in anger against another nation in the last 5 years. Who is the true aggressor in Asia?
China can hardly be blamed for this, as countries become strong they flex their muscles, it is a natural order for human societies.
China has muscles, but it also has brains. China was in no hurry to flex its muscles. But China had to respond when dumb nations with no muscles, or no brains, or both, started poking at China. Yet China does most of its damage with its brains, not its muscle.
This is unlike one very special Supapowa nation who has some muscle (not that much actually), but has barely any brains. That nation got its ass whooped in economic and military terms by smaller and humbler nations around Asia.