Skip to content

Commit 7daaa9a

Browse files
committed
fix version badge margin
1 parent 92ea384 commit 7daaa9a

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

docs/.vitepress/theme/VersionBadge.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
const {version, pr} = defineProps(["version", "pr"]);
44
55
</script>
6+
<style>
7+
8+
.VPBadge {
9+
margin: -2px 0;
10+
}
11+
12+
</style>
613
<template>
714
<Badge v-if="version || pr" :type="version ? `tip` : `warning`">
815
<a :href="version ? `https://github.com/observablehq/plot/releases/tag/v${version}` : `https://github.com/observablehq/plot/pull/${pr}`" :title="version ? `added in v${version}` : `added in #${pr}`" target="_blank" rel="external" style="color: inherit;">

0 commit comments

Comments
 (0)