fix(editor): prevent double scrollbars in biography tab
This commit is contained in:
parent
07fa1487f1
commit
970f69be53
3 changed files with 81 additions and 0 deletions
|
@ -8,4 +8,44 @@
|
|||
display: grid;
|
||||
grid-template-columns: 1fr 3fr;
|
||||
column-gap: 1em;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.ds4-biography {
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
|
||||
prose-mirror {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
|
||||
// Edit mode with editor container
|
||||
&.active {
|
||||
.editor-container {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
|
||||
.editor-content {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
min-height: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// View mode - direct editor-content
|
||||
&.inactive {
|
||||
.editor-content {
|
||||
position: relative;
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
min-height: 0;
|
||||
inset: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,5 +14,41 @@
|
|||
background: transparent;
|
||||
}
|
||||
}
|
||||
|
||||
prose-mirror {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
|
||||
// Edit mode with editor container
|
||||
&.active {
|
||||
.editor-container {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
|
||||
.editor-content {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
min-height: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// View mode - direct editor-content
|
||||
&.inactive {
|
||||
.editor-content {
|
||||
position: relative;
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
min-height: 0;
|
||||
inset: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -7,4 +7,9 @@
|
|||
.ds4-sheet-body {
|
||||
height: 100%;
|
||||
overflow-y: auto;
|
||||
|
||||
// Prevent double scrollbars on biography tab
|
||||
.ds4-sheet-tab.tab.biography.active {
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue