Merge pull request #324 from Jones8683/main

feat: Apply 12-hour time to more elements and restyle motd
This commit is contained in:
Seth Burkart
2025-07-19 18:26:00 +10:00
committed by GitHub
2 changed files with 33 additions and 6 deletions
+28 -1
View File
@@ -1987,6 +1987,10 @@ div.entry.new {
border-radius: 4px;
}
div.liveEntry {
border-radius: 4px;
}
.uiFileHandler .uiButton {
border-radius: 32px !important;
color: var(--text-primary) !important;
@@ -2098,10 +2102,33 @@ div.bar.flat {
background: var(--background-secondary) !important;
}
.dashlet-motd {
.dashlet-motd {
padding: 7px !important;
.message {
font-size: 24px !important;
border-radius: 12px !important;
border: none !important;
box-shadow: none !important;
color: #fff !important;
padding: 16px !important;
margin: 0 !important;
height: 100% !important;
max-height: none !important;
display: flex !important;
align-items: flex-start !important;
overflow: hidden !important;
}
}
.cke_toolbox > .cke_toolbar > .cke_toolgroup > .cke_button {
background: var(--background-secondary) !important;
color: var(--text-primary) !important;
}
.cke_toolbox > .cke_toolbar > .cke_combo > .cke_combo_button {
background: var(--background-secondary) !important;
color: var(--text-primary) !important;
}
}
+1 -1
View File
@@ -67,7 +67,7 @@ async function handleTimetable(): Promise<void> {
// Convert time format if needed
if (settingsState.timeFormat == "12") {
const times = document.querySelectorAll(".timetablepage .times .time");
const times = document.querySelectorAll(".timetablepage .times .time, .timetablepage .entry.new");
for (const time of times) {
if (!time.textContent) continue;
time.textContent = convertTo12HourFormat(time.textContent, true);