We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e44abe8 commit 1c8b937Copy full SHA for 1c8b937
streamlit_condition_tree/frontend/src/ConditionTree.tsx
@@ -138,7 +138,10 @@ class ConditionTree extends StreamlitComponentBase<State> {
138
}
139
140
componentDidUpdate = () => {
141
- // ... (existing code for CSS class)
+ // Class to apply custom css on rule_groups with a single child
142
+ document
143
+ .querySelectorAll('.rule_group>.group--children:has(> :nth-child(1):last-child)')
144
+ .forEach((x) => x.classList.add('single-child'))
145
146
// Check if the tree has changed
147
const currentTree = QbUtils.getTree(this.state.tree)
0 commit comments