sympy-live icon indicating copy to clipboard operation
sympy-live copied to clipboard

Problem in the log in block of the Sympy Live

Open Abhishek-IOT opened this issue 4 years ago • 6 comments

Whenever we go to the login block of the sympy live the space is large that when we don't go to the login but it stays like we are clicking on the login . And it does'nt respond also . SympyLogin

Abhishek-IOT avatar Dec 28 '20 04:12 Abhishek-IOT

Can any one help me to fix this issue??

Abhishek-IOT avatar Dec 28 '20 04:12 Abhishek-IOT

@Abhishek-IOT nice catch. I used the browser inspector to identify what styles were applied to that element. Turns out the <h3> box that wraps the "Log In" link had the following style, in a stylesheet called live-core.css:

.sidebar_card h3:first-child {
  cursor: pointer;
}

But that just makes the cursor show up as a hand, without actually activating the link within when clicked.

There's no file named live-core.css in this repo, so I searched the sympy organization for "h3:first-child", which revealed the actual source.

The fix was to actually expand the link (<a>) element inside the <h3>, by making it display as a block (which occupies all the available horizontal space), using the display: block CSS rule. I've submitted that fix as PR https://github.com/sympy/sympy-web-static/pull/12.

I'm describing what I did in the hopes it may help you experiment yourself in the future with similar issues. Let me know if anything isn't clear!

waldyrious avatar Dec 28 '20 11:12 waldyrious

@waldyrious First of all thanks for replying....I also somewhat understood that to maintain the structure of the website that block was designed and it led to this thing that whenever the cursor was not there also it showed up hand .

Abhishek-IOT avatar Dec 28 '20 13:12 Abhishek-IOT

@waldyrious can you help me to have the setup of sympy live so that I can also contribute to it.......I sometimes not able to understand the code though.....

Abhishek-IOT avatar Dec 28 '20 13:12 Abhishek-IOT

sympy-live/css....I don't find any directory like sympy-live in the sympy-live repo and there is no css file also.

Abhishek-IOT avatar Dec 28 '20 13:12 Abhishek-IOT

@waldyrious can you help me to have the setup of sympy

Sorry, I don't know how to do it either. I just follow this project out of curiosity, and happened to know how to solve the particular issue you raised in this thread. Hopefully someone else can help you.

waldyrious avatar Dec 28 '20 18:12 waldyrious