mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-08-28 17:21:05 +00:00
fix(timetable): reopen colour picker
+ some quick fixes to dropdowns again
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
import { settingsState } from "@/seqta/utils/listeners/SettingsState";
|
||||
import type { Plugin } from "../../core/types";
|
||||
import {
|
||||
attachTimetableColorisRecovery,
|
||||
resetStuckColorisPicker,
|
||||
} from "@/seqta/utils/timetableColoris";
|
||||
import { attachTimetableColorisRecovery } from "@/seqta/utils/timetableColoris";
|
||||
import { convertTo12HourFormat } from "@/seqta/utils/convertTo12HourFormat";
|
||||
import { waitForElm } from "@/seqta/utils/waitForElm";
|
||||
|
||||
const timetablePlugin: Plugin<{}, {}> = {
|
||||
@@ -67,7 +65,6 @@ function resetTimetableStyles(): void {
|
||||
|
||||
async function handleTimetable(): Promise<void> {
|
||||
attachTimetableColorisRecovery();
|
||||
resetStuckColorisPicker();
|
||||
|
||||
// SEQTA uses `.times` blocks on entries, not necessarily `.time`; avoid infinite polling on a missing selector.
|
||||
try {
|
||||
@@ -97,11 +94,13 @@ function handleTimetableZoom(): void {
|
||||
zoomControls.className = "timetable-zoom-controls";
|
||||
|
||||
const zoomIn = document.createElement("button");
|
||||
zoomIn.className = "uiButton timetable-zoom iconFamily";
|
||||
zoomIn.type = "button";
|
||||
zoomIn.className = "timetable-zoom iconFamily bsplus-timetable-control";
|
||||
zoomIn.innerHTML = ""; // Unicode for zoom in icon (custom iconfamily)
|
||||
|
||||
const zoomOut = document.createElement("button");
|
||||
zoomOut.className = "uiButton timetable-zoom iconFamily";
|
||||
zoomOut.type = "button";
|
||||
zoomOut.className = "timetable-zoom iconFamily bsplus-timetable-control";
|
||||
zoomOut.innerHTML = ""; // Unicode for zoom out icon (custom iconfamily)
|
||||
|
||||
zoomControls.appendChild(zoomOut);
|
||||
@@ -140,7 +139,8 @@ function handleTimetableAssessmentHide(): void {
|
||||
hideControls.className = "timetable-hide-controls";
|
||||
|
||||
const hideOn = document.createElement("button");
|
||||
hideOn.className = "uiButton timetable-hide iconFamily";
|
||||
hideOn.type = "button";
|
||||
hideOn.className = "timetable-hide iconFamily bsplus-timetable-control";
|
||||
hideOn.innerHTML = "";
|
||||
|
||||
hideControls.appendChild(hideOn);
|
||||
|
||||
Reference in New Issue
Block a user