We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d653714 commit 3688850Copy full SHA for 3688850
src/views/components/Code.vue
@@ -1,7 +1,9 @@
1
<template>
2
<div
3
- class="line-numbers"
4
- :class="tw`px-1 py-2 bg-gray-100 dark:bg-gray-800 overflow-auto`"
+ :class="[
+ tw`bg-gray-100 dark:bg-gray-800 overflow-auto`,
5
+ !inline ? tw`line-numbers px-1 py-2` : tw`px-8 py-6`
6
+ ]"
7
>
8
<Prism :language="lang === 'vue' ? 'html' : lang" :inline="inline">{{
9
formattedCode
0 commit comments