UX: make topic list gists link to the topic (#1459)

This commit is contained in:
Kris 2025-06-24 09:14:18 -04:00 committed by GitHub
parent 4c1cd5d819
commit 757c93e514
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 4 deletions

View File

@ -24,16 +24,16 @@ export default class AiTopicGist extends Component {
<template>
{{#if this.shouldShow}}
{{#if this.hasGist}}
<div class="excerpt">
<a href={{@topic.lastUnreadUrl}} class="excerpt">
<div class="excerpt__contents">{{this.gist}}</div>
</div>
</a>
{{else}}
{{#if this.escapedExcerpt}}
<div class="excerpt">
<a href={{@topic.lastUnreadUrl}} class="excerpt">
<div class="excerpt__contents">
{{htmlSafe this.escapedExcerpt}}
</div>
</div>
</a>
{{/if}}
{{/if}}
{{/if}}

View File

@ -41,6 +41,7 @@
line-height: var(--line-height-large);
margin-top: 0.15em;
margin-bottom: 0.15em;
color: currentcolor;
&__contents {
max-width: 70ch;