The modeline has different heights in different buffers

What happened?

The modeline has a different height depending on what buffer it is in. For example, a dired buffer will have a larger modeline than an elisp one:

The modeline only seems to be larger in special buffers, such as dired or magit.

What did you expect to happen?

The modeline should be the same height in all buffers.

Steps to reproduce

  1. Open a dired buffer.

System information

Loading data dump...