File tree Expand file tree Collapse file tree 1 file changed +31
-5
lines changed
custom-implementation/src Expand file tree Collapse file tree 1 file changed +31
-5
lines changed Original file line number Diff line number Diff line change 17
17
display : block; /* Show the wrapper on screens larger than 1024px */
18
18
}
19
19
}
20
-
20
+ /* Fix header overlap and sidebar height issues */
21
21
.fern-sidebar-container {
22
- top : 60px ; /* Adjust to your header height */
23
- height : calc (100vh - 60px ); /* Subtract header height from full viewport */
22
+ position : fixed;
23
+ top : 60px ; /* Your header height */
24
+ bottom : 60px ; /* Your footer height */
25
+ height : calc (100vh - 120px ); /* Viewport minus header and footer */
26
+ overflow-y : auto;
27
+ z-index : 50 ; /* Lower than header */
24
28
}
25
29
26
- /* Also push the main content down */
27
30
.fern-main {
28
- margin-top : 60px ; /* Adjust to your header height */
31
+ margin-top : 60px ; /* Header height */
32
+ margin-bottom : 60px ; /* Footer height if footer is fixed */
33
+ }
34
+
35
+ /* Ensure header is properly positioned */
36
+ .custom-header {
37
+ position : fixed;
38
+ top : 0 ;
39
+ left : 0 ;
40
+ right : 0 ;
41
+ height : 60px ; /* Set explicit height */
42
+ z-index : 60 ;
43
+ background : white; /* Prevent content showing through */
44
+ }
45
+
46
+ /* Ensure footer is properly positioned */
47
+ .custom-footer {
48
+ position : fixed;
49
+ bottom : 0 ;
50
+ left : 0 ;
51
+ right : 0 ;
52
+ height : 60px ; /* Set explicit height */
53
+ z-index : 50 ;
54
+ background : white;
29
55
}
You can’t perform that action at this time.
0 commit comments