Skip to content

Commit

Permalink
细节调整
Browse files Browse the repository at this point in the history
  • Loading branch information
umodoc committed Sep 17, 2024
1 parent b1fc67b commit 65f27cc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/extensions/page/node-view.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@
'--umo-page-height': pageSize.height + 'cm',
}"
>
<div
v-if="node.attrs.pageNumber > 1"
class="umo-page-node-view-handler"
:title="t('pagination.toggle')"
@dblclick="page.pagination = !page.pagination"
></div>
<tooltip placement="right" :content="t('pagination.toggle')">
<div
v-if="node.attrs.pageNumber > 1"
class="umo-page-node-view-handler"
@dblclick="page.pagination = !page.pagination"
></div>
</tooltip>
<t-watermark
v-if="page.watermark"
class="umo-page-watermark"
Expand Down Expand Up @@ -88,7 +89,7 @@ const { editor, node } = defineProps(nodeViewProps)
const containerRef = ref(null)
const pageSize = $computed(() => {
const { width, height } = page.value.size ?? { width: 0, height: 0 }
const { width, height } = page.value.size
return {
width: page.value.orientation === 'portrait' ? width : height,
height: page.value.orientation === 'portrait' ? height : width,
Expand Down Expand Up @@ -269,7 +270,6 @@ watch(
}
.umo-page-node-view-handler {
cursor: vertical-text;
background-color: var(--umo-page-background);
margin-top: -10px;
Expand Down

0 comments on commit 65f27cc

Please sign in to comment.