Skip to content

Commit

Permalink
fix(editor): remove over div
Browse files Browse the repository at this point in the history
  • Loading branch information
Novout committed Oct 1, 2021
1 parent dddafec commit 818b51d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/components/editor/entity/EditorEntityShow.vue
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<template>
<section
class="w-full relative"
:class="edit ? 'shadow-winset dark:shadow-binset' : ''"
:class="edit ? 'shadow-winset dark:shadow-binset p-0 m-0' : ''"
@mouseenter="hover = true"
@mouseleave="hover = false"
>
<EditorEntityShowPopover
v-if="hover && !edit && props.entity.type !== 'heading-one'"
:entity="props.entity"
/>
<div @click.prevent="onEdit">
<div
<div
v-if="!edit"
ref="show"
class="overflow-hidden w-full break-words"
@click.prevent="onEdit"
:class="[
props.entity.type === 'paragraph' && !edit ? 'indent-15' : '',
props.entity.type === 'paragraph' ? 'text-justify' : '',
Expand Down Expand Up @@ -123,7 +123,6 @@
:style="{ height }"
@keypress.enter.prevent="onUpdateContent"
/>
</div>
</section>
</template>

Expand Down

0 comments on commit 818b51d

Please sign in to comment.