Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

statement also has feature like end-row make a new line for it's body #8707

Open
1 task done
mlzboy opened this issue Dec 22, 2024 · 8 comments
Open
1 task done

statement also has feature like end-row make a new line for it's body #8707

mlzboy opened this issue Dec 22, 2024 · 8 comments
Labels
issue: feature request Describes a new feature and why it should be added issue: triage Issues awaiting triage by a Blockly team member

Comments

@mlzboy
Copy link

mlzboy commented Dec 22, 2024

Check for duplicates

  • I have searched for similar issues before opening a new one.

Problem

Image
put some information in statement input want to make a newline ,if all information in single line it's too long

Request

Alternatives considered

No response

Additional context

No response

@mlzboy mlzboy added issue: feature request Describes a new feature and why it should be added issue: triage Issues awaiting triage by a Blockly team member labels Dec 22, 2024
@gonfunko
Copy link
Contributor

gonfunko commented Jan 6, 2025

A block without the wide vertical area next to the statements can be created. Here is an example block definition that roughly corresponds to your block's structure, and a screenshot of how it renders:

Image
{
  "type": "my_block2",
  "tooltip": "",
  "helpUrl": "",
  "message0": "text %1 %2 middle label %3 end label %4 very long text label goes here %5 middle label %6 end label %7 %8",
  "args0": [
    {
      "type": "field_dropdown",
      "name": "DD1",
      "options": [
        [
          "a",
          "A"
        ],
        [
          "b",
          "B"
        ],
        [
          "c",
          "C"
        ]
      ]
    },
    {
      "type": "field_dropdown",
      "name": "DD2",
      "options": [
        [
          "a",
          "A"
        ],
        [
          "b",
          "B"
        ],
        [
          "c",
          "C"
        ]
      ]
    },
    {
      "type": "field_dropdown",
      "name": "DD2",
      "options": [
        [
          "a",
          "A"
        ],
        [
          "b",
          "B"
        ],
        [
          "c",
          "C"
        ]
      ]
    },
    {
      "type": "input_dummy",
      "name": "ROW1"
    },
    {
      "type": "field_dropdown",
      "name": "DD1",
      "options": [
        [
          "a",
          "A"
        ],
        [
          "b",
          "B"
        ],
        [
          "c",
          "C"
        ]
      ]
    },
    {
      "type": "field_dropdown",
      "name": "DD2",
      "options": [
        [
          "a",
          "A"
        ],
        [
          "b",
          "B"
        ],
        [
          "c",
          "C"
        ]
      ]
    },
    {
      "type": "input_dummy",
      "name": "ROW2"
    },
    {
      "type": "input_statement",
      "name": "NAME"
    }
  ],
  "colour": 225
}

The block factory might be useful for experimenting too if you haven't seen it already.

@gonfunko gonfunko closed this as completed Jan 6, 2025
@mlzboy
Copy link
Author

mlzboy commented Jan 8, 2025

dummy end-row make new line in statement input top,what I want to make new line is in statement body want to make a new line ,look carefully my demo pic

@mlzboy
Copy link
Author

mlzboy commented Jan 9, 2025

@gonfunko please help me reopen this issue

@gonfunko gonfunko reopened this Jan 9, 2025
@cpcallen
Copy link
Contributor

dummy end-row make new line in statement input top,what I want to make new line is in statement body want to make a new line ,look carefully my demo pic

@MZboy: Have you accidentally attached two copies of the same image? I don't see any difference between them.

@mlzboy
Copy link
Author

mlzboy commented Jan 14, 2025

dummy end-row make new line in statement input top,what I want to make new line is in statement body want to make a new line ,look carefully my demo pic

@MZboy: Have you accidentally attached two copies of the same image? I don't see any difference between them.

sorry ,removed duplicate image

@rachel-fenichel
Copy link
Collaborator

@mlzboy Now there is only one image and we can't see what you wanted it to look like. Please add an image to clarify what you want the block to look like.

@cpcallen
Copy link
Contributor

As we are not sure exactly what the desired behaviour is, we're going to close this issue. @mlzboy: feel free to reopen if you are able to provide us with an image or clear explanation of your intent.

@cpcallen cpcallen closed this as not planned Won't fix, can't repro, duplicate, stale Jan 17, 2025
@mlzboy
Copy link
Author

mlzboy commented Jan 18, 2025

Image @cpcallen @rachel-fenichel check this image has problem

Image
this image is ok

Image

@gonfunko gonfunko reopened this Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue: feature request Describes a new feature and why it should be added issue: triage Issues awaiting triage by a Blockly team member
Projects
None yet
Development

No branches or pull requests

4 participants