File tree Expand file tree Collapse file tree 1 file changed +25
-3
lines changed Expand file tree Collapse file tree 1 file changed +25
-3
lines changed Original file line number Diff line number Diff line change 6
6
7
7
// Make tables more responsive and wider
8
8
table {
9
- width : 100% ;
10
- max-width : 100% ;
9
+ width : 100% !important ;
10
+ max-width : 100% !important ;
11
+ table-layout : fixed ; // This helps distribute column widths evenly
11
12
overflow-x : auto ;
12
13
display : block ;
13
14
@@ -16,21 +17,42 @@ table {
16
17
}
17
18
}
18
19
19
- // Ensure table cells don't wrap unnecessarily
20
+ // Ensure table cells don't wrap unnecessarily and use full width
20
21
td , th {
21
22
white-space : nowrap ;
22
23
padding : 8px 12px ;
24
+ word-wrap : break-word ;
23
25
24
26
// Allow wrapping for longer content in specific columns
25
27
& :nth-child (3 ) { // Lecture column
26
28
white-space : normal ;
27
29
min-width : 200px ;
30
+ width : 40% ; // Give this column more space
28
31
}
29
32
30
33
& :nth-child (4 ) { // Assignments column
31
34
white-space : normal ;
32
35
min-width : 150px ;
36
+ width : 20% ; // Give this column some space
33
37
}
38
+
39
+ & :nth-child (1 ) { // Week column
40
+ width : 10% ;
41
+ }
42
+
43
+ & :nth-child (2 ) { // Date column
44
+ width : 15% ;
45
+ }
46
+
47
+ & :nth-child (5 ) { // Lecturer column
48
+ width : 15% ;
49
+ }
50
+ }
51
+
52
+ // Force the table to use the full width of its container
53
+ .main-content table {
54
+ margin : 0 ;
55
+ width : 100% !important ;
34
56
}
35
57
36
58
// Add horizontal scroll for very small screens
You can’t perform that action at this time.
0 commit comments