NOTE: this question was answered below by Jhor, and the class file that I link to below has now been fixed, so the problem is no longer reproducible.
I am using a class that was created for my university's dissertation requirements, which is freely available at https://github.com/lotten/uci-thesis-latex/blob/master/ucithesis.cls
My problem is with chapter titles that are too long to fit on a single line in the table of contents. The TOC entry for such titles ends up aligned ragged left, which looks strange, so I would like them to be ragged right instead. You can see this clearly in the minimum working example I included below, but it requires having the ucithesis.cls from the link above.
% Minimum working example
\documentclass{ucithesis}
\begin{document}
\tableofcontents
\chapter{This chapter title fits on one line and is aligned to the left, as I want it}
\chapter{This chapter title is too long to fit on one line in the table of contents, and
requires multiple lines, so the text gets aligned to the right, and the ragged left looks
very strange. I would like for this text to be left aligned and ragged right instead. The
last line appears centered, which I don't necessarily mind, as long as all of the other
lines are aligned to the left.}
\end{document}
Note: the example contains a very long title which I used to clarify what is going on. In actuality, my longest chapter title is less than 1.5 lines. But it still looks weird to have the TOC entries not start all the way on the left.
Ideally, I am hoping to find a solution that does not involve any additional packages. I was able to get the results I wanted with
\usepackage{tocstyle}
\usetocstyle{standard}
but it came along with some very verbose warnings about the tocstyle package being an alpha version, including the admonition
Maybe it would be better, not to load this package.
Thanks in advance for any help or suggestions!
titeltoc
? Add e.g.\usepackage{titletoc} \titlecontents{chapter} [3.8em] {} {\contentslabel{2.3em}} {\hspace*{-2.3em}} {\titlerule*[1pc]{.}\contentspage}
to the preamble of your document.