@asafarim/markdown-explorer-viewer
Version:
A reusable React component for exploring and viewing markdown files with file tree navigation
43 lines (36 loc) • 1.22 kB
CSS
/* Force sidebar scrolling with high specificity selectors */
.app .demo-explorer [class*="sidebar"] {
height: 100% ;
max-height: 100vh ;
display: flex ;
flex-direction: column ;
overflow: hidden ;
}
.app .demo-explorer [class*="sidebarContent"] {
flex: 1 ;
overflow-y: auto ;
height: calc(100% - 60px) ; /* Subtract header height */
min-height: 0 ;
}
/* Target FileTree directly with high specificity */
.app .demo-explorer [class*="fileTree"] {
overflow-y: auto ;
max-height: calc(100vh - 180px) ;
height: auto ;
}
/* Ensure the markdownExplorer has proper height */
.app .demo-explorer {
height: 100% ;
min-height: calc(100vh - 120px) ; /* Subtract header/footer height */
overflow: hidden ;
}
/* Debug borders to visualize layout issues */
.app .demo-explorer [class*="sidebar"] {
border: 2px solid red ;
}
.app .demo-explorer [class*="sidebarContent"] {
border: 2px solid blue ;
}
.app .demo-explorer [class*="fileTree"] {
border: 2px solid green ;
}