Re:Tell HN: Thank you for not redesigning Hacker News
by deftturtle on Sunday September 01, 2019 @05:32PM
(#20855071)
a {padding: 1rem}
This increases area by padding the link. Just don’t want the rap areas of different elements to overlap with too much padding.
You can also put a border around the new area, or a box shadow, to indicate larger click area, making it a button sort of:
{border: thin solid grey}
Re:Tell HN: Thank you for not redesigning Hacker News
by eurasiantiger on Sunday September 01, 2019 @06:08PM
(#20855314)
Note that the <a> element is inline by default, which means top and bottom padding is not applied. Set display: inline-block; to have padding apply all around while retaining the element’s flow in the layout.
Re:Tell HN: Thank you for not redesigning Hacker News
by deftturtle on Monday September 02, 2019 @07:57PM
(#20862614)
Thank you! I’m still learning CSS and will have to adjust my style sheets! :)
Re:Tell HN: Thank you for not redesigning Hacker News
by tryptophan on Sunday September 01, 2019 @05:35PM
(#20855099)
Probably just add some extra "padding: 5px". All the padding area registers "clicks" for the element.
Re:Tell HN: Thank you for not redesigning Hacker News
by fanick on Monday September 02, 2019 @02:13AM
(#20857108)
For the thread collapsing functionality I think the long press/touch could mitigate the need for pinch zooming. Just hold your thumb on the comment long enough and bang, it's gone.
For me this is the most commonly performed interaction with the site.
Aside: I have noticed Safari auto-inceases the touch zone for inputs and elements with ontouch/onclick events (I noticed because I had to fix an issue caused by this!)