Solved the problem myself. Just for future reference in case someone else has this problem. On the Quick Access Toolbar click tag, you get a dropdown menu untick Minimize the Ribbon. I don't know why it suddenly became ticked but there you go, computers are strange things.
OnePlus 5 review