Skip to content

Commit

Permalink
feat(editor): header breaking and last time set
Browse files Browse the repository at this point in the history
  • Loading branch information
Novout committed Oct 13, 2021
1 parent 12e0afc commit 8153ee2
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 8 deletions.
3 changes: 3 additions & 0 deletions src/components/editor/entity/EditorEntityShow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@
props.entity.type === 'heading-two' ? 'text-center pb-3' : '',
props.entity.type === 'heading-three' ? 'text-center pb-3' : '',
props.entity.type === 'page-break' ? 'pt-2' : '',
props.entity.type === 'line-break' ? 'pt-2' : '',
]"
>
<p>{{ update }}</p>
Expand Down
6 changes: 3 additions & 3 deletions src/components/editor/entity/EditorEntityShowPopover.vue
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
</svg>
</HeroIcon>
</template>
<p>{{ t('editor.aside.props.entity.up') }}</p>
<p>{{ t('editor.aside.entity.up') }}</p>
</EditorEntityShowSelect>
<EditorEntityShowSelect @click.prevent.stop="onDownEntity">
<template #icon>
Expand All @@ -166,7 +166,7 @@
</svg>
</HeroIcon>
</template>
<p>{{ t('editor.aside.props.entity.down') }}</p>
<p>{{ t('editor.aside.entity.down') }}</p>
</EditorEntityShowSelect>
<EditorEntityShowSelect @click.prevent.stop="onDeleteEntity">
<template #icon>
Expand All @@ -185,7 +185,7 @@
</svg>
</HeroIcon>
</template>
<p>{{ t('editor.aside.props.entity.delete') }}</p>
<p>{{ t('editor.aside.entity.delete') }}</p>
</EditorEntityShowSelect>
</section>
<HeroIcon class="wb-icon" @mouseenter.prevent.stop="onAdjustEntityWrapper">
Expand Down
11 changes: 9 additions & 2 deletions src/components/editor/main/EditorBase.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
<template>
<div
ref="main"
class="w-full overflow-hidden h-screen bg-gray-100 dark:bg-gray-700"
class="
w-full
flex flex-col
overflow-hidden
h-screen
bg-gray-100
dark:bg-gray-700
"
:class="[
store.state.editor.configuration.draggable ? 'fixed' : 'inline-block',
]"
Expand All @@ -18,8 +25,8 @@
class="
flex flex-col
w-full
overflow-y-auto
max-h-screen
overflow-y-auto
bg-gray-100
dark:bg-gray-700
"
Expand Down
6 changes: 3 additions & 3 deletions src/components/editor/main/EditorBaseHeader.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<template>
<div
<header
class="
flex
justify-end
items-center
relative
w-full
bg-white-opacity
dark:bg-black-opacity
"
Expand Down Expand Up @@ -128,7 +128,7 @@
/>
</svg>
</HeroIcon>
</div>
</header>
</template>

<script setup lang="ts">
Expand Down

0 comments on commit 8153ee2

Please sign in to comment.