Fixes sidebar calc funtion to only work on desktop.