UX: title links to first post on expanded timeline

This commit is contained in:
Sam 2016-11-02 15:12:01 +11:00
parent aa0e17574b
commit 920264349d
2 changed files with 8 additions and 1 deletions

View File

@ -232,7 +232,11 @@ export default createWidget('topic-timeline', {
if (attrs.mobileView) { if (attrs.mobileView) {
titleHTML = new RawHtml({ html: `<span>${topic.get('fancyTitle')}</span>` }); titleHTML = new RawHtml({ html: `<span>${topic.get('fancyTitle')}</span>` });
} }
result.push(h('h3.title', titleHTML)); result.push(h('h3.title', this.attach('link', {
contents: ()=>titleHTML,
className: 'fancy-title',
action: 'jumpTop'
})));
} }

View File

@ -67,6 +67,9 @@
display: table-cell; display: table-cell;
vertical-align: top; vertical-align: top;
line-height: 1.3em; line-height: 1.3em;
a {
color: $primary;
}
} }
.timeline-last-read { .timeline-last-read {
right: 0px; right: 0px;