33 | {problems.length === 0 &&
{t("settings.sections.customCSS.editor.noProblems")}
}
34 | {problems.map((problem, index) => (
35 |
{
39 | if (!editor) return;
40 | editor.focus();
41 | editor.revealLine(problem.startLineNumber);
42 | editor.setPosition({
43 | column: problem.startColumn,
44 | lineNumber: problem.startLineNumber
45 | });
46 | }}
47 | >
48 |
51 |
52 |
53 |
54 | {problem.message}
55 |
56 | {problem.source && (
57 | <>
58 |
59 | {problem.source}
60 |
61 |
62 | {problem.code && typeof problem.code === "string" ? `(${problem.code})` : ""}
63 |
64 | >
65 | )}
66 |
{`[Ln ${problem.startLineNumber}, Col ${problem.startColumn}]`}
67 |
68 |
69 |
70 | ))}
71 |
72 | );
73 | });
74 | EditorProblems.displayName = "EditorProblems";
75 | export default EditorProblems;
76 |
--------------------------------------------------------------------------------
/src/components/Inputs/CSSEditor/ExpandButton/index.tsx:
--------------------------------------------------------------------------------
1 | import { useSettings } from "@/src/components/Settings/Settings";
2 | import { cn } from "@/src/utils/utilities";
3 | import { forwardRef } from "react";
4 | type ExpandButtonProps = {
5 | isExpanded: boolean;
6 | onToggle: () => void;
7 | };
8 | const ExpandButton = forwardRef