Skip to content

Commit

Permalink
fix: active element (slidevjs#832)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonai committed Jan 18, 2023
1 parent ebfaf8f commit 6216edf
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 25 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"@types/semver": "^7.3.13",
"@types/yargs": "^17.0.17",
"@typescript-eslint/eslint-plugin": "^5.47.0",
"@vueuse/core": "^9.7.0",
"@vueuse/core": "^9.11.0",
"bumpp": "^8.2.1",
"cross-env": "^7.0.3",
"cypress": "^12.1.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/client/internals/SlidesOverview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ watchEffect(() => {
class="relative"
>
<div
class="inline-block border border-gray-400 rounded border-opacity-50 overflow-hidden bg-main hover:border-$slidev-theme-primary"
:class="{ 'border-$slidev-theme-primary': focus(idx + 1) }"
class="inline-block border rounded border-opacity-50 overflow-hidden bg-main hover:border-$slidev-theme-primary"
:class="{ 'border-$slidev-theme-primary': focus(idx + 1), 'border-gray-400': !focus(idx + 1) }"
:style="themeVars"
@click="go(+route.path)"
>
Expand Down
2 changes: 1 addition & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@slidev/parser": "workspace:*",
"@slidev/types": "workspace:*",
"@unocss/reset": "^0.47.6",
"@vueuse/core": "^9.7.0",
"@vueuse/core": "^9.11.0",
"@vueuse/head": "^1.0.22",
"@vueuse/math": "^9.7.0",
"@vueuse/motion": "^2.0.0-beta.26",
Expand Down
51 changes: 30 additions & 21 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6216edf

Please sign in to comment.