Skip to content

Commit

Permalink
fix(docs): remove inline badge
Browse files Browse the repository at this point in the history
Signed-off-by: ZTL-UwU <zhangtianli2006@163.com>
  • Loading branch information
ZTL-UwU committed May 28, 2024
1 parent 3549884 commit 18841fb
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
3 changes: 2 additions & 1 deletion components/content/CodeGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

<script setup lang="ts">
import CodeGroupHeader from './CodeGroupHeader.vue';
import { Card as UiCard } from '@/components/ui/card/index';
const _slots = useSlots();
const activeTabIndex = ref(0);
Expand Down Expand Up @@ -33,7 +34,7 @@ function render() {
});
return h(
'div',
UiCard,
[
h(
CodeGroupHeader,
Expand Down
4 changes: 2 additions & 2 deletions components/content/CodeGroupHeader.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<UiCard class="rounded-b-none border-b-0 p-0.5 flex text-sm">
<div class="border-b p-0.5 flex text-sm">
<UiTabs v-if="tabs" :default-value="tabs[0].label">
<UiTabsList>
<UiTabsTrigger
Expand All @@ -15,7 +15,7 @@
</UiTabsList>
</UiTabs>
<CodeCopy v-show="selected.label !== 'Preview'" class="self-center ml-auto mr-3" :code="selected.code" />
</UiCard>
</div>
<slot name="footer" />
</template>

Expand Down
4 changes: 2 additions & 2 deletions components/content/Preview.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<UiCard class="rounded-t-none p-3 bg-muted/30">
<div class="p-3 bg-muted/30">
<slot />
</UiCard>
</div>
</template>

<script setup lang="ts">
Expand Down
5 changes: 4 additions & 1 deletion components/content/ProseCode.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<template>
<UiCard class="[&:not(:first-child)]:mt-5 mb-5 overflow-hidden" :class="[inGroup && 'rounded-t-none']">
<UiCard
class="[&:not(:first-child)]:mt-5 mb-5 overflow-hidden"
:class="[inGroup && 'rounded-t-none border-none mb-0']"
>
<div v-if="!inGroup && filename" class="p-3 border-b flex text-sm font-mono">
<Icon v-if="icon" :name="icon" class="self-center mr-1.5" />
{{ filename }}
Expand Down
6 changes: 3 additions & 3 deletions content/1.getting-started/3.writing/2.components.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ icon: 'lucide:component'

## Docs Components

The :badge[Badges]{variant="outline"} under each component title marks the compatibility with other doc templates.
The **Badges** under each component title marks the compatibility with other doc templates.

### Alert

:badge[Docus]{variant="outline" to="https://docus.dev/api/components#alert" target="_blank"}

::code-group
Expand Down Expand Up @@ -434,8 +435,7 @@ npm i -D @iconify-json/collection-name
Beautifully designed Nuxt Content template with shadcn-vue.<br>Customizable. Compatible. Open Source.
::
::

```md [Code]
```md[Code]
::hero
---
announcement:
Expand Down

0 comments on commit 18841fb

Please sign in to comment.