Skip to content

Commit

Permalink
fix: add 'slidev' class prefix (#461)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonai committed Jan 21, 2022
1 parent d81b650 commit 4214961
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/client/builtin/Toc.vue
Expand Up @@ -77,7 +77,7 @@ const toc = computed(() => {
</script>

<template>
<div :style="`column-count:${columns}`">
<div class="slidev-toc" :style="`column-count:${columns}`">
<TocList :level="1" :list="toc" />
</div>
</template>
4 changes: 2 additions & 2 deletions packages/client/builtin/TocList.vue
Expand Up @@ -16,8 +16,8 @@ withDefaults(defineProps<{
</script>

<template>
<ul v-if="list && list.length > 0" :class="['toc', `toc-level-${level}`]">
<li v-for="item in list" :key="item.path" :class="['toc-item', {'toc-item-active': item.active}, {'toc-item-parent-active': item.activeParent}]">
<ul v-if="list && list.length > 0" :class="['slidev-toc-list', `slidev-toc-list-level-${level}`]">
<li v-for="item in list" :key="item.path" :class="['slidev-toc-item', {'slidev-toc-item-active': item.active}, {'slidev-toc-item-parent-active': item.activeParent}]">
<RouterLink :to="item.path">
{{ item.title }}
</RouterLink>
Expand Down

0 comments on commit 4214961

Please sign in to comment.