Skip to content

Commit ae345c0

Browse files
committed
fix: styles
1 parent 4832795 commit ae345c0

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

app/components/CopyToClipboardButton.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<script setup lang="ts">
2+
import type { HTMLAttributes } from 'vue'
3+
24
defineOptions({
35
inheritAttrs: false,
46
})
@@ -9,6 +11,7 @@ const props = defineProps<{
911
copiedText?: string
1012
ariaLabelCopy?: string
1113
ariaLabelCopied?: string
14+
buttonAttrs?: HTMLAttributes
1215
}>()
1316
1417
const buttonCopyText = computed(() => props.copyText || $t('common.copy'))
@@ -37,6 +40,7 @@ function handleClick() {
3740
copied ? 'text-accent bg-accent/10' : 'text-fg-muted bg-bg border-border',
3841
]"
3942
:aria-label="copied ? buttonAriaLabelCopied : buttonAriaLabelCopy"
43+
v-bind="buttonAttrs"
4044
>
4145
<span
4246
:class="copied ? 'i-lucide:check' : 'i-lucide:copy'"

app/pages/compare.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,8 @@ useSeoMeta({
245245
v-if="packagesData && packagesData.some(p => p !== null)"
246246
:copied="copied"
247247
:copy-text="$t('compare.packages.copy_as_markdown')"
248-
class="mb-4 inline-block hidden md:inline-flex"
248+
class="mb-4"
249+
:button-attrs="{ class: 'hidden md:inline-flex' }"
249250
@click="exportComparisonDataAsMarkdown"
250251
>
251252
<h2 id="comparison-heading" class="text-xs text-fg-subtle uppercase tracking-wider">

0 commit comments

Comments
 (0)