I can't even open the location of the app

I can't open the location of the app in my sidebar every time i click on it just go back to the log in button. I really need help it is for my final year project.

This is the code that my member made can you spot the problem here. It only work in AI Companion but when we downloaded it, it just glitch out none of the button go to it specific page.

I don't like that test for width not equal zero.

Width can be negative, like -1 or -2.

Try >= 0

Set width to max(0,width -100)
To stay non-negative