Skip to content

Commit

Permalink
style(editor): height in mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
Novout committed Sep 24, 2021
1 parent 443038f commit a9ea30c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
11 changes: 9 additions & 2 deletions src/components/editor/main/EditorBase.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
<template>
<div class="md:px-20 sm:px-0 px-0 h-screen flex items-center">
<div class="md:px-20 px-2 h-screen flex items-center">
<div
ref="main"
class="md:w-8/12 w-full h-editor bg-gray-100 dark:bg-gray-700"
class="
md:w-8/12
w-full
h-editor-mobile
md:h-editor
bg-gray-100
dark:bg-gray-700
"
:class="[
store.state.editor.configuration.draggable ? 'fixed' : 'inline-block',
]"
Expand Down
7 changes: 5 additions & 2 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,15 @@ module.exports = {
}),
height: theme => ({
"editor": "75vh",
"editor-mobile": "90vh"
}),
maxHeight: theme => ({
"editor": "75vh"
"editor": "75vh",
"editor-mobile": "90vh"
}),
minHeight: theme => ({
"editor": "75vh"
"editor": "75vh",
"editor-mobile": "90vh"
}),
backgroundColor: theme => ({
"black-opacity": 'rgba(0,0,0, 0.1)',
Expand Down

0 comments on commit a9ea30c

Please sign in to comment.