Fix sidebar pinning to incorrect side on post view