Oh sure, you could do that too. I assume you have used ::first-letter and a few other shenanigans like hidden overflow. That's not difficult, but if it's going to be done in core a basic PHP string chop would make more sense. Or it could be done in Twig syntax in any template (or extension).
Which, come to think of it, I might as well try just for giggles. I assume something like this would do it:
Code: Select all
{{ {postrow.POST_AUTHOR_FULL} |first }}
Brackets are probably wrong but should be easy to sort.
ETA: Basic HTML and CSS implementation, if anyone wants it.
Markup:
Code: Select all
<dt class="has-profile-rank no-avatar">
<div class="avatar-container bung-username-in-here-too">
Oh hai!
</div>
<a href="whatever" style="color: #hexstuff;" class="username-coloured">Oh hai!</a>
</dt>
Code: Select all
.bung-username-in-here-too {
width: 1.8rem;
height: 1.8rem;
overflow: hidden;
text-align: center;
writing-mode: vertical-rl;
text-orientation: upright;
}
.bung-username-in-here-too::first-letter {
font-size: 1.5rem;
font-weight: bold;
}