We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66edb3c commit dbeff63Copy full SHA for dbeff63
1 file changed
src/addons/addons/editor-tweaks/userscript.js
@@ -219,7 +219,19 @@ export default async function({ addon }) {
219
220
if (expandBtnSz === 0 && this.sourceBlock_) {
221
const input = this.sourceBlock_.inputList.find(i => i.fieldRow.includes(this));
222
- if (input) input.setVisible(false);
+ if (input) {
223
+ // we dont want to hide labels or other fields:
224
+ if (input.fieldRow.length > 2) {
225
+ for (const field of input.fieldRow) {
226
+ if (
227
+ field instanceof Blockly.FieldExpandableAdd ||
228
+ field instanceof Blockly.FieldExpandableRemove
229
+ ) field.setVisible(false);
230
+ }
231
+ } else {
232
+ input.setVisible(false);
233
234
235
}
236
237
const ratio = (Blockly.BlockSvg.FIELD_HEIGHT / 32) * expandBtnSz;
0 commit comments