Adjust history-item overlay menu on small screens