提交 7587d87a 编写于 作者: View Design's avatar View Design

代码块样式

上级 ae8073c4
<template> <template>
<pre class="flex justify-between mb-0 rounded-bl-none rounded-br-none dark"> <UCard :ui="{ body: { padding: 'p-0 sm:p-0' }, base: 'overflow-hidden' }">
<pre class="flex justify-between m-0 rounded-none dark">
<div>{{ language }}</div> <div>{{ language }}</div>
<UButton <UButton
leading-icon="i-heroicons-document-duplicate-20-solid" leading-icon="i-heroicons-document-duplicate-20-solid"
...@@ -9,7 +10,8 @@ ...@@ -9,7 +10,8 @@
/> />
</pre> </pre>
<UDivider :ui="{ border: { base: 'border-gray-700' } }" /> <UDivider :ui="{ border: { base: 'border-gray-700' } }" />
<pre :class="$props.class" class="m-0 rounded-tl-none rounded-tr-none"><code v-html="codeBlock"></code></pre> <pre :class="$props.class" class="m-0 rounded-none"><code v-html="codeBlock"></code></pre>
</UCard>
</template> </template>
<script setup> <script setup>
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
</div> </div>
<UDivider /> <UDivider />
</header> </header>
<div class="container max-w-screen-lg flex flex-col space-y-6 mb-4 p-6" id="scrollElement"> <div class="container max-w-screen-lg flex flex-col space-y-6 p-6 pb-0" id="scrollElement">
<div class="grid"> <div class="grid">
<h1 class="text-3xl truncate">{{ state.query }}</h1> <h1 class="text-3xl truncate">{{ state.query }}</h1>
</div> </div>
...@@ -32,8 +32,8 @@ ...@@ -32,8 +32,8 @@
{{ state.repo }} {{ state.repo }}
</section> </section>
<template v-for="(item, index) in data" :key="index"> <template v-for="(item, index) in data" :key="index">
<div class="grid"> <div class="grid" v-if="index !== 0">
<h1 class="text-3xl truncate" v-if="index !== 0" :id="index + 1">{{ item.question }}</h1> <h1 class="text-3xl truncate" :id="index + 1">{{ item.question }}</h1>
</div> </div>
<UCard :ui="{ body: { padding: 'p-4 sm:p-4' } }"> <UCard :ui="{ body: { padding: 'p-4 sm:p-4' } }">
<UAccordion :items="[{}]" default-open> <UAccordion :items="[{}]" default-open>
...@@ -124,7 +124,7 @@ ...@@ -124,7 +124,7 @@
</UButton> </UButton>
</div> </div>
</div> </div>
<div class="container max-w-screen-lg sticky bottom-4 flex p-6"> <div class="container max-w-screen-lg sticky bottom-2 flex pl-6 pr-6">
<div class="justify-between flex w-full space-x-2"> <div class="justify-between flex w-full space-x-2">
<UTooltip text="停止生成" v-if="asking"> <UTooltip text="停止生成" v-if="asking">
<UButton <UButton
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册