mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-06-29 19:12:15 +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>
|
<template>
|
||||||
{{#if this.shouldShow}}
|
{{#if this.shouldShow}}
|
||||||
{{#if this.hasGist}}
|
{{#if this.hasGist}}
|
||||||
<div class="excerpt">
|
<a href={{@topic.lastUnreadUrl}} class="excerpt">
|
||||||
<div class="excerpt__contents">{{this.gist}}</div>
|
<div class="excerpt__contents">{{this.gist}}</div>
|
||||||
</div>
|
</a>
|
||||||
{{else}}
|
{{else}}
|
||||||
{{#if this.escapedExcerpt}}
|
{{#if this.escapedExcerpt}}
|
||||||
<div class="excerpt">
|
<a href={{@topic.lastUnreadUrl}} class="excerpt">
|
||||||
<div class="excerpt__contents">
|
<div class="excerpt__contents">
|
||||||
{{htmlSafe this.escapedExcerpt}}
|
{{htmlSafe this.escapedExcerpt}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
@ -41,6 +41,7 @@
|
|||||||
line-height: var(--line-height-large);
|
line-height: var(--line-height-large);
|
||||||
margin-top: 0.15em;
|
margin-top: 0.15em;
|
||||||
margin-bottom: 0.15em;
|
margin-bottom: 0.15em;
|
||||||
|
color: currentcolor;
|
||||||
|
|
||||||
&__contents {
|
&__contents {
|
||||||
max-width: 70ch;
|
max-width: 70ch;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user