Skip to content

Commit 7a1270d

Browse files
committed
feat(unified-search) remove AI banner and unused CSS
CMK-24851 Change-Id: Id23175f28cb4be06b087dbd0f7e4f6a7f6ba3232
1 parent 3fcf56d commit 7a1270d

3 files changed

Lines changed: 2 additions & 36 deletions

File tree

packages/cmk-frontend-vue/src/unified-search/UnifiedSearchApp.vue

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -139,25 +139,4 @@ onMounted(() => {
139139
width: 750px;
140140
max-width: 750px;
141141
}
142-
143-
.unified-search-results {
144-
border-top: 1px solid var(--ux-theme-3);
145-
border-left: 1px solid var(--ux-theme-3);
146-
}
147-
148-
.unified-search-results > .results:first-of-type {
149-
border-right: 1px solid var(--ux-theme-3);
150-
}
151-
152-
.results {
153-
display: flex;
154-
width: 100%;
155-
height: calc(100% - 61px);
156-
}
157-
158-
.results:deep(span.hightlight_query) {
159-
display: inline-block;
160-
background: var(--color-warning);
161-
color: --black;
162-
}
163142
</style>

packages/cmk-frontend-vue/src/unified-search/UnifiedSearchFooter.vue

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ This file is part of Checkmk (https://checkmk.com). It is subject to the terms a
44
conditions defined in the file COPYING, which is part of this source code package.
55
-->
66
<script setup lang="ts">
7-
import CmkIcon from '@/components/CmkIcon.vue'
87
import usei18n from '@/lib/i18n'
98
import { getSearchUtils } from './providers/search-utils'
109
import type { Suggestions } from '@/components/CmkSuggestions.vue'
@@ -51,18 +50,6 @@ const sortSuggestions: Suggestions = {
5150
>
5251
</CmkDropdown>
5352
</div>
54-
<div>
55-
{{
56-
t(
57-
'not-found-ask-ai',
58-
"You looked through the results and still haven't found what you are looking for?"
59-
)
60-
}}
61-
</div>
62-
<div>
63-
<CmkIcon variant="inline" name="sparkle" :title="t('ask-ai', 'Ask Checkmk AI')" />
64-
<a href="https://chat.checkmk.com/" target="_blank">{{ t('ask-ai', 'Go Ask AI') }}</a>
65-
</div>
6653
</div>
6754
</template>
6855

@@ -82,7 +69,7 @@ const sortSuggestions: Suggestions = {
8269
display: flex;
8370
flex-direction: column;
8471
align-items: center;
85-
bottom: calc(3 * var(--spacing));
72+
bottom: var(--spacing-double);
8673
position: fixed;
8774
width: 750px;
8875
}

packages/cmk-frontend-vue/src/unified-search/UnifiedSearchTabResults.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ function searchResultNotEmpty(): boolean {
210210
:key="tab.title"
211211
class="cmk-unified-search-result-tab-content"
212212
>
213-
<CmkScrollContainer max-height="calc(100vh - 300px)">
213+
<CmkScrollContainer max-height="calc(100vh - 240px)">
214214
<ResultList>
215215
<ResultItem
216216
v-for="(item, idxe) in tab.results"

0 commit comments

Comments
 (0)