fix: prompt store 样式问题

main
ChenZhaoYu 2 years ago
parent 734eb7a3fb
commit 630e88b8c4

@ -1,10 +1,4 @@
[ [
{
"key": "chatgpt-prompt-collection",
"desc": "Nothing1024收集整理的prompts",
"downloadUrl": "https://raw.githubusercontent.com/Nothing1024/chatgpt-prompt-collection/main/awesome-chatgpt-prompts-zh.json",
"url": "https://github.com/Nothing1024/chatgpt-prompt-collection"
},
{ {
"key": "awesome-chatgpt-prompts-zh", "key": "awesome-chatgpt-prompts-zh",
"desc": "ChatGPT 中文调教指南", "desc": "ChatGPT 中文调教指南",

@ -1,7 +1,7 @@
<script setup lang='ts'> <script setup lang='ts'>
import type { DataTableColumns } from 'naive-ui' import type { DataTableColumns } from 'naive-ui'
import { computed, h, ref, watch } from 'vue' import { computed, h, ref, watch } from 'vue'
import { NButton, NCard, NDataTable, NDivider, NInput, NLayoutContent, NList, NListItem, NModal, NPopconfirm, NSpace, NTabPane, NTabs, NThing, useMessage } from 'naive-ui' import { NButton, NCard, NDataTable, NDivider, NInput, NList, NListItem, NModal, NPopconfirm, NSpace, NTabPane, NTabs, NThing, useMessage } from 'naive-ui'
import PromptRecommend from '../../../assets/recommend.json' import PromptRecommend from '../../../assets/recommend.json'
import { SvgIcon } from '..' import { SvgIcon } from '..'
import { usePromptStore } from '@/store' import { usePromptStore } from '@/store'
@ -408,17 +408,12 @@ const dataSource = computed(() => {
</NButton> </NButton>
</div> </div>
<NDivider /> <NDivider />
<NLayoutContent <div class="max-h-[360px] overflow-y-auto space-y-4">
style="height: 360px"
content-style="background: none;"
:native-scrollbar="false"
>
<NCard <NCard
v-for="info in promptRecommendList" v-for="info in promptRecommendList"
:key="info.key" :title="info.key" :key="info.key" :title="info.key"
style="margin: 5px;"
embedded
:bordered="true" :bordered="true"
embedded
> >
<p <p
class="overflow-hidden text-ellipsis whitespace-nowrap" class="overflow-hidden text-ellipsis whitespace-nowrap"
@ -442,7 +437,7 @@ const dataSource = computed(() => {
</div> </div>
</template> </template>
</NCard> </NCard>
</NLayoutContent> </div>
</NTabPane> </NTabPane>
</NTabs> </NTabs>
</div> </div>

Loading…
Cancel
Save