Well, trying to create a minimal reproducible example actually solved my problem! There’s actually just some absolutely positioned element in the way – if I remove that, the code works fine. Thank you @C3roe!!