Skip to content

Commit d4beddd

Browse files
Change width
1 parent fbae183 commit d4beddd

File tree

1 file changed

+25
-3
lines changed

1 file changed

+25
-3
lines changed

_sass/color_schemes/custom.scss

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66

77
// Make tables more responsive and wider
88
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
1112
overflow-x: auto;
1213
display: block;
1314

@@ -16,21 +17,42 @@ table {
1617
}
1718
}
1819

19-
// Ensure table cells don't wrap unnecessarily
20+
// Ensure table cells don't wrap unnecessarily and use full width
2021
td, th {
2122
white-space: nowrap;
2223
padding: 8px 12px;
24+
word-wrap: break-word;
2325

2426
// Allow wrapping for longer content in specific columns
2527
&:nth-child(3) { // Lecture column
2628
white-space: normal;
2729
min-width: 200px;
30+
width: 40%; // Give this column more space
2831
}
2932

3033
&:nth-child(4) { // Assignments column
3134
white-space: normal;
3235
min-width: 150px;
36+
width: 20%; // Give this column some space
3337
}
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;
3456
}
3557

3658
// Add horizontal scroll for very small screens

0 commit comments

Comments
 (0)