Fix inventory tooltips and separate rendering from interaction

- This separates the item rendering logic from the slot inventory interaction.
- The changes specific to fixing the tooltips is in the first commit.