mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-06-29 02:52:16 +00:00
UX: make topic list gists link to the topic (#1459)
This commit is contained in:
parent
4c1cd5d819
commit
757c93e514
@ -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}}
|
||||
|
@ -41,6 +41,7 @@
|
||||
line-height: var(--line-height-large);
|
||||
margin-top: 0.15em;
|
||||
margin-bottom: 0.15em;
|
||||
color: currentcolor;
|
||||
|
||||
&__contents {
|
||||
max-width: 70ch;
|
||||
|
Loading…
x
Reference in New Issue
Block a user