Added logic to only use top and fixed if screen width is wide enough