Skip to content

Commit 630e88b

Browse files
committed
fix: prompt store 样式问题
1 parent 734eb7a commit 630e88b

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

src/assets/recommend.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
[
2-
{
3-
"key": "chatgpt-prompt-collection",
4-
"desc": "Nothing1024收集整理的prompts",
5-
"downloadUrl": "https://raw.githubusercontent.com/Nothing1024/chatgpt-prompt-collection/main/awesome-chatgpt-prompts-zh.json",
6-
"url": "https://github.com/Nothing1024/chatgpt-prompt-collection"
7-
},
82
{
93
"key": "awesome-chatgpt-prompts-zh",
104
"desc": "ChatGPT 中文调教指南",

src/components/common/PromptStore/index.vue

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script setup lang='ts'>
22
import type { DataTableColumns } from 'naive-ui'
33
import { computed, h, ref, watch } from 'vue'
4-
import { NButton, NCard, NDataTable, NDivider, NInput, NLayoutContent, NList, NListItem, NModal, NPopconfirm, NSpace, NTabPane, NTabs, NThing, useMessage } from 'naive-ui'
4+
import { NButton, NCard, NDataTable, NDivider, NInput, NList, NListItem, NModal, NPopconfirm, NSpace, NTabPane, NTabs, NThing, useMessage } from 'naive-ui'
55
import PromptRecommend from '../../../assets/recommend.json'
66
import { SvgIcon } from '..'
77
import { usePromptStore } from '@/store'
@@ -408,17 +408,12 @@ const dataSource = computed(() => {
408408
</NButton>
409409
</div>
410410
<NDivider />
411-
<NLayoutContent
412-
style="height: 360px"
413-
content-style="background: none;"
414-
:native-scrollbar="false"
415-
>
411+
<div class="max-h-[360px] overflow-y-auto space-y-4">
416412
<NCard
417413
v-for="info in promptRecommendList"
418414
:key="info.key" :title="info.key"
419-
style="margin: 5px;"
420-
embedded
421415
:bordered="true"
416+
embedded
422417
>
423418
<p
424419
class="overflow-hidden text-ellipsis whitespace-nowrap"
@@ -442,7 +437,7 @@ const dataSource = computed(() => {
442437
</div>
443438
</template>
444439
</NCard>
445-
</NLayoutContent>
440+
</div>
446441
</NTabPane>
447442
</NTabs>
448443
</div>

0 commit comments

Comments
 (0)