- Betroffene Version
- WoltLab Suite 3.0
I'm bringing this from another thread for the sake of neatness. I want to add a permanent button/link to the mobile thread list in order to go to the last post.
I'm trying to insert this link into the threadlist template...
The options thus far to turn the "last post time" into a link, and to replace:
<li class="messageGroupLastPostTimeMobile">{@$thread->lastPostTime|time}</li>
With this:
<li class="messageGroupLastPostTimeMobile"><a href="{link application='wbb' controller='Thread' object=$thread}action=lastPost{/link}"><strong>{@$thread->lastPostTime|time}</strong></a></li>
However, it doesn't actually work as the entire cell itself is a link/button and that takes priority.
A suggestion from this thread is to add this to the css:
@media (max-width: 768px){
.messageGroupList .tabularListRow:not(.tabularListRowHead) > .tabularListColumns .columnStats, .messageGroupList .tabularListRow:not(.tabularListRowHead) > .tabularListColumns .columnLastPost {
display: inherit !important;
}
.mobileLinkShadow
{ display :none;
}
.messageGroupLastPostTimeMobile
{display : none
}
.badge
{display : none
}
}
Alles anzeigen
Which brings back a mini avatar to click on. A bit cluttered and not ideal, but it almost works.
HOWEVER. The problem here is that the cell is no longer a button, but it still gets and stays highlighted when it's clicked, thus causing a little confusion - it also affects the "recent activity" section of the dashboard by doing the same.
So, can anyone help me to integrate the two ideas above and help me to make a "go to last post" button that works for mobile view?