Cards cropped from the top after updating to 26.05

Hello.

I have this bug only after updating to 26.05. Many cards in my deck are cropped from the top, which is a problem because I can’t see the answer sometimes. Weird thing is that some of them do not have this problem while using the same template. This only happens on PC version (Windows 11 in my case). AnkiMobile and Ankidroid don’t have this bug.

Example of a card with this bug in PC:

The same card in AnkiMobile:

I hope the Anki team can fix this soon. Thank you for your work.

What was your old version? Can you export and share a sample card? You can upload to some website like https://gofile.io/

25.09.

I uploaded a sample card: https:// gofile. io/d/XQr9hD
If you need me to upload the whole deck I will.

Looks like a CSS layout issue. A quick fix is to increase the margin of the #concept element - replace the #concept styles in the Styling section with this (only margin is modified):

#concept {
  width: 80%;
  margin: 15em auto 2em;
  font-size: 140%;
  background-color: #FF6B6B;
  color: white;
  font-weight: bold;
  border-radius: 10px;
  padding: 0.2em 0;
}

I’ve not tested this on mobile though.

CSS/JS rendering differences is usually not something that Anki can fix because it’s handled by the different web engines used in the various platforms: Styling & HTML - Anki Manual

I applied the change you mentioned and now it’s fixed. Thank you very much.

So maybe the web engine caused css to work differently in this version? Sorry I don’t understand much about these things.

Yes that’s probably it - might be some subtle behavior change.