Bigger margin in the editor in 2.1.45

I changed Anki from 2.1.44 to 2.1.45

All the margins in the editor are much bigger. As you can see in the picture, the fields in the browser are higher. I am talking about fields below the list of cards in the browser.

Is it possible to make the margins shorter as they were in anki 2.1.44? I can see much less while editing now.
Thanks.

2.1.45 is quite an old Anki version, in newer ones the look of fields has changed a lot.

If you want to stay at 2.1.45, you can use CSS Injector - Change default editor styles - AnkiWeb and add the following rule to the file field.css within the add-on’s user_files folder:

anki-editable {
  padding: 2px 6px;
}

This decreases the top- and bottom margins to 2px each. If that’s too little padding, just increase the value.

4 Likes

It works like a charm.

anki-editable {
padding: 0px 0px;
}

I have put “0” there :slight_smile:

It looks great now. Amazing extension. Maybe the gaps between lines of text in a field could be smaller though. I guess that I need to put an additional command into the extension file. I will try to find it.

Wow, Thanks a ton.

You can adjust that with the line-height CSS property, e.g.:

anki-editable {
  padding: 0px;
  line-height: 1.2rem;
}
2 Likes