Skip to content

Commit

Permalink
fix(presenter): clicks context sync with mirror mode
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Dec 28, 2024
1 parent 49eca77 commit d99eb2a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
21 changes: 11 additions & 10 deletions packages/client/pages/presenter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -127,16 +127,17 @@ onMounted(() => {
<template v-if="mainSlideMode === 'mirror'">
<ScreenCaptureMirror />
</template>
<template v-else>
<SlideContainer
key="main"
class="p-2 lg:p-4 flex-auto"
is-main
@contextmenu="onContextMenu"
>
<SlidesShow render-context="presenter" />
</SlideContainer>
</template>

<!-- We use v-show here to still infer the clicks context -->
<SlideContainer
v-show="mainSlideMode === 'slides'"
key="main"
class="p-2 lg:p-4 flex-auto"
is-main
@contextmenu="onContextMenu"
>
<SlidesShow render-context="presenter" />
</SlideContainer>

<ClicksSlider
:key="currentSlideRoute?.no"
Expand Down
4 changes: 2 additions & 2 deletions packages/client/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ html {

.slidev-form-button {
--uno: text-white px-4 py-1 rounded border-b-2;
--uno: 'bg-gray-400:50 border-gray-800:50';
--uno: 'hover:(bg-gray-400:75 border-gray8:75)';
--uno: 'bg-gray-500 border-gray-700';
--uno: 'hover:(bg-gray-400 border-gray6)';
}
.slidev-form-button.primary {
--uno: bg-teal-600 border-teal-800;
Expand Down

0 comments on commit d99eb2a

Please sign in to comment.