fix: resolve double scrollbar in file editor
- Change workspace-main overflow from auto to hidden to prevent nested scrolling - Change file-editor-content overflow from auto to hidden - Change code-block overflow from auto to visible - Add flex display to workspace-main and file-editor-content for proper height distribution Fixes double scrollbar issue in file editor workspace
This commit is contained in:
@@ -926,9 +926,11 @@ a {
|
|||||||
|
|
||||||
.workspace-main {
|
.workspace-main {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
overflow: auto;
|
overflow: hidden;
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
background: var(--bg);
|
background: var(--bg);
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* File Tree */
|
/* File Tree */
|
||||||
@@ -1522,8 +1524,10 @@ a {
|
|||||||
|
|
||||||
.file-editor-content {
|
.file-editor-content {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
overflow: auto;
|
overflow: hidden;
|
||||||
background: var(--bg);
|
background: var(--bg);
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Syntax Highlighter */
|
/* Syntax Highlighter */
|
||||||
@@ -1595,7 +1599,7 @@ a {
|
|||||||
flex: 1;
|
flex: 1;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
overflow: auto;
|
overflow: visible;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user