How to change section title sizes on the back of card

Hello!

I don’t love how much space the section titles (the rectangles that say “Lecture Notes,” “First Aid,” etc) take up relative to the size of my screen on mobile - it prevents me from being able to see more, requires more scrolling, etc.

Is there a way for me to go into the card formatting and make them smaller? I assume I’d have to re-do my edits every time a new update to the notetype comes out, which I don’t mind.

Thank you so much!

Edit: this is ankimobile on iOS (and iPadOS)

Hello,

Are you on Ankimobile or Ankidroid?

Oh, right, Ankimobile.

Do you have the Anking Note Types addon installed on your desktop Anki?

If so, you might try resetting your note type in the event that somehow your settings were adjusted. This can be accomplished by clicking here:

image

Alternately, it may be possible to adjust the code specifically specifying the mobile button size. This can be accomplished, also from the desktop Anki, by clicking on ‘cards’ here:

image

Then, click on ‘styling’:

And lastly you’re looking for .mobile .button-general, which should specify for font and padding size. I haven’t tested this specifically but hopefully one, or a combination, of these options will do the trick for you.

image

Let me know if any of those work for you and if you have any other questions. :slight_smile:

1 Like

Perfect, that’s exactly what I was looking for, thank you so much!! I really appreciate it.

Happy to help. Just out of curiosity, and for my own knowledge, which approach did you take that solved the problem?

Oh, sure!

I’m always hesitant to reset cards because I’ve made a number of changes to the formatting that are outside the usual user customization portions. I chose to take the latter route - altering the .mobile .button-general font size and padding (I also added !important, although I’m not sure if that was necessary because I didn’t test it without it).

IMG_2181

Just in case it’s helpful, if you go to the card, and specifically the back template, you can find this note at the bottom:

Adjusting things beyond this line will be preserved and won’t be overwritten by note type updates from Anking-related notes, FYI. This is designed intentionally so that you can optionally modify elements of your cards without having to worry about those changes being erased or overwritten. :slight_smile:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.