@@ -44,19 +44,19 @@ export const dataContentPane = {
4444 },
4545*/
4646 /* This code was generated by Generative AI (GPT-5.3-Codex in GitHub Copilot) based on the following prompt:
47- Only the class assignments of dataContentPaneNestedLight and dataContentPaneNestedDark
47+ Only the class assignments of dataContentPaneNestedLight and dataContentPaneNestedDark
4848 are the only things added by AI.
49-
50- This is the comment I got from copilot, but suggested fix remove the dark
51- class as well The nested table shading logic checks
52- UI.utils.ancestor(newTable, 'TABLE') immediately after
53- creating newTable, but at that moment newTable typically has no
54- parent in the DOM yet. This makes parentTable null and will
55- always apply dataContentPaneNestedLight, preventing the
56- intended alternating light/dark nested backgrounds.
57- Consider assigning the class after appending newTable into
58- its parent table, or pass the parent table (or current nesting
59- depth) into objectTree() so the decision can be made reliably.
49+
50+ This is the comment I got from copilot, but suggested fix remove the dark
51+ class as well The nested table shading logic checks
52+ UI.utils.ancestor(newTable, 'TABLE') immediately after
53+ creating newTable, but at that moment newTable typically has no
54+ parent in the DOM yet. This makes parentTable null and will
55+ always apply dataContentPaneNestedLight, preventing the
56+ intended alternating light/dark nested backgrounds.
57+ Consider assigning the class after appending newTable into
58+ its parent table, or pass the parent table (or current nesting
59+ depth) into objectTree() so the decision can be made reliably.
6060 can you help me fix this without removing the dark altering */
6161 statementsAsTables : function statementsAsTables ( sts , context , initialRoots ) {
6262 const myDocument = context . dom
0 commit comments