paul-tqh-nguyen / arxiv_as_a_newspaper

arxiv.org portrayed as if it were a news paper.
0 stars 0 forks source link

Link that you know won't work shouldn't appear clickable #54

Open penkar opened 5 years ago

penkar commented 5 years ago

In particular the previous research field button on the landing page. Or you could just loop it around to the end of the list.

pointer-events: none; cursor: default; opacity: 0.5;

paul-tqh-nguyen commented 5 years ago

https://github.com/paul-tqh-nguyen/arxiv_as_a_newspaper/commit/7700e3073acd4ffca8785c7e65b4e68d234ed9c8

This patch makes it so that we don't display the "Next Research Field" link / button when there's no next research field to go to and the vice-versa regarding "Previous Research Field".

We now pass around the entire research field list to the relevant subcomponents in order to be able to detect when we're at the end or beginning of the research field list.

paul-tqh-nguyen commented 5 years ago

This actually causes problems with center-alignment of certain text. Reopening to address this issue.