Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit b68a4ca

Browse files
authored
UX: ensure gists occupy full row (#934)
1 parent 1a10680 commit b68a4ca

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

assets/javascripts/discourse/components/ai-topic-gist.gjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,14 @@ export default class AiTopicGist extends Component {
2525
{{#if this.shouldShow}}
2626
{{#if this.hasGist}}
2727
<div class="excerpt">
28-
<div>{{this.gist}}</div>
28+
<div class="excerpt__contents">{{this.gist}}</div>
2929
</div>
3030
{{else}}
3131
{{#if this.esacpedExceprt}}
3232
<div class="excerpt">
33-
<div>{{htmlSafe this.escapedExceprt}}</div>
33+
<div class="excerpt__contents">
34+
{{htmlSafe this.escapedExceprt}}
35+
</div>
3436
</div>
3537
{{/if}}
3638
{{/if}}

assets/stylesheets/modules/summarization/common/ai-gists.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939
line-height: var(--line-height-large);
4040
margin-top: 0.15em;
4141
margin-bottom: 0.15em;
42-
max-width: 70ch;
42+
&__contents {
43+
max-width: 70ch;
44+
}
4345
}
4446
&:not(.visited) {
4547
.excerpt {

0 commit comments

Comments
 (0)