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

Allow dialog contents to grow #183161

Closed
wants to merge 1 commit into from
Closed

Conversation

joyceerhl
Copy link
Contributor

@joyceerhl joyceerhl commented May 22, 2023

Before:
image

After:
image

@joyceerhl joyceerhl self-assigned this May 22, 2023
@joyceerhl joyceerhl enabled auto-merge (squash) May 22, 2023 21:39
@joyceerhl joyceerhl requested a review from sbatten May 22, 2023 21:39
@VSCodeTriageBot VSCodeTriageBot added this to the May 2023 milestone May 22, 2023
@@ -60,6 +60,7 @@
/** Dialog: Message Container */
.monaco-dialog-box .dialog-message-row .dialog-message-container {
display: flex;
flex: 1; /* let the dialog message contents grow */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This lets the message area grow with the box, but the way it works right now is to grow with the conent. I'm not sure this change is necessary as I would expect the input to define that. E.g. all of the current text divs grow with long text until they cannot and then they wrap. Shouldn't this just be a a div with text stylized like an input? Side note, I noticed I can edit the text in the input when testing. Is that expected?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this just be a a div with text stylized like an input

The input api is designed for requesting passwords and other kinds of text input, so generally it needs to be editable. For my scenario I don't need it to be editable, but I do want that the user can keyboard-nav through the text to see its contents in full, and I get that for free by using the input dialog. I don't think there is a way for the input element to specify that it should grow with its contents using CSS attributes alone though.

@joyceerhl
Copy link
Contributor Author

Closing in favor of #183372

@joyceerhl joyceerhl closed this May 24, 2023
auto-merge was automatically disabled May 24, 2023 22:29

Pull request was closed

@github-actions github-actions bot locked and limited conversation to collaborators Jul 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants