Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export default class AiSearchDiscoveries extends Component {
<CookText @rawText={{this.discobotDiscoveries.discovery}} />
</div>
{{else}}
<div class="ai-search-discoveries___discovery-preview cooked">
<div class="ai-search-discoveries__discovery-preview cooked">
<CookText
@rawText={{this.discobotDiscoveries.discoveryPreview}}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default class AiFullPageDiscobotDiscoveries extends Component {
class="ai-search-discoveries__discoveries-title full-page-discoveries"
>
<span>
{{icon "ai-bot"}}
{{icon "discobot"}}
{{i18n "discourse_ai.discobot_discoveries.main_title"}}
</span>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default class AiDiscobotDiscoveries extends Component {
<div class="ai-discobot-discoveries">
<h3 class="ai-search-discoveries__discoveries-title">
<span>
{{icon "ai-bot"}}
{{icon "discobot"}}
{{i18n "discourse_ai.discobot_discoveries.main_title"}}
</span>

Expand Down Expand Up @@ -51,7 +51,7 @@ export default class AiDiscobotDiscoveries extends Component {

<AiSearchDiscoveries />

<h3 class="ai-discobot-discoveries__regular-results-title">
<h3 class="ai-search-discoveries__regular-results-title">
{{icon "bars-staggered"}}
{{i18n "discourse_ai.discobot_discoveries.regular_results"}}
</h3>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,34 @@
}

&__completion {
margin: 1em 0;
margin: 0;
}

&__discovery-preview {
@include ellipsis;
max-height: 300px;
height: 3.5em; // roughly the loading skeleton height
overflow: hidden;
position: relative;

&::after {
content: "";
position: absolute;
display: block;
background: linear-gradient(rgba(255, 255, 255, 0), var(--secondary));
height: 50%;
width: 100%;
bottom: 0;
}
}

&__discoveries-title,
&__regular-results-title {
padding-bottom: 0.5em;
border-bottom: 1px solid var(--primary-low);
font-size: var(--font-0);

.d-icon {
color: var(--primary-high);
}
}

&__discoveries-title {
Expand All @@ -27,6 +43,10 @@
padding-left: 0;
margin-bottom: 0.5em;
}

.cooked p:first-child {
margin-top: 0;
}
}

.ai-search-discoveries-tooltip {
Expand All @@ -38,6 +58,10 @@
.fk-d-tooltip__trigger {
vertical-align: middle;
}

.d-icon {
color: var(--primary-medium);
}
}

.ai-discobot-discoveries {
Expand All @@ -47,3 +71,9 @@
.full-page-discoveries {
padding: 1em 10%;
}

.d-icon-discobot {
// appears a little undersized next to other icons
height: 1.15em;
width: 1.15em;
}
1 change: 0 additions & 1 deletion plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ def self.public_asset_path(name)
face-smile
face-meh
face-angry
ai-bot
]
plugin_icons.each { |icon| register_svg_icon(icon) }
end
8 changes: 0 additions & 8 deletions svg-icons/ai-bot-icon.svg

This file was deleted.

4 changes: 4 additions & 0 deletions svg-icons/icons-sprite.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading