The result of the following MWE:
\documentclass{book}
\usepackage{lipsum}
\usepackage[left, pagewise]{lineno}
\usepackage[most]{tcolorbox}
\newtcolorbox{foo}[1][]{
blanker,
breakable,
left=3mm, right=3mm, top=1mm, bottom=1mm,
borderline vertical={5pt}{0pt}{green},
before upper=\indent,
parbox=false,
#1
}
\begin{document}
%\linenumbers
\chapter{Foo bar}
\lipsum[1-4]
\begin{center}
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit,
vestibulum ut, placerat ac, adipiscing vitae, felis. Curabitur dictum gravida
mauris. Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna.
\end{center}
\begin{foo}[oversize]
\lipsum[1-5]
\end{foo}
\lipsum[1-4]
\end{document}
is this
but just adding \linenumbers
screws up the result
What can I do?