I am using the description style arrow label in Tikz-cd so that the label appears on top of the arrow with some white space around the label. The issue is, with small arrows and large labels, the white space eats up the entire arrow.
Thus I would like to shrink the white space around the label. In the Tikz-cd documentation it says this can be accomplished with "inner sep," though I am not sure exactly how this is done.
Here is a minimal working example where I try to (unsuccessfully) modify the white space around the arrow label using inner sep.
\documentclass{article}
\usepackage{amsmath,amssymb,tikz-cd}
\begin{document}
$$
\begin{tikzcd}
A \ar[r, "f" description] & B
\end{tikzcd}
$$
$$
\begin{tikzcd}
A \ar[r, "f" description, inner sep = -2em] & B
\end{tikzcd}
$$
\end{document}


labels. See my renewed answer. – CarLaTeX Apr 25 '23 at 06:30descriptionkey (description/.append style={inner sep = .5pt}) instead of changing theinner sepfor alllabels. However, if all your labels should lie on top of the line, you can also dolabels = descriptionand don't have do specifydescriptioneach time. – Qrrbrbirlbel Apr 25 '23 at 14:05