Skip to content

Conversation

@farmaazon
Copy link
Contributor

Pull Request Description

Fixes #14138

image

Important Notes

Ports are now stretched to the entire node's height. It doesn't look good, but I don't quite know how to make them "shrink" to content size, while still allowing content to be stretched if needed.

Checklist

Please ensure that the following checklist has been satisfied before submitting the PR:

  • The documentation has been updated, if necessary.
  • Screenshots/screencasts have been attached, if there are any visual changes. For interactive or animated visual changes, a screencast is preferred.
  • All code follows the
    Scala,
    Java,
    TypeScript,
    and
    Rust
    style guides. In case you are using a language not listed above, follow the Rust style guide.
  • [ ] Unit tests have been written where possible.
  • [ ] If meaningful changes were made to logic or tests affecting Enso Cloud integration in the libraries,
    or the Snowflake database integration, a run of the Extra Tests has been scheduled.
    • If applicable, it is suggested to paste a link to a successful run of the Extra Tests.

@vitvakatu
Copy link
Contributor

Ports are now stretched to the entire node's height. It doesn't look good, but I don't quite know how to make them "shrink" to content size, while still allowing content to be stretched if needed.

I think height: min-content on WidgetPort does that, although I’m not sure if it looks good.

@farmaazon
Copy link
Contributor Author

Because drop down started looking bad in "expanded" nodes, I changed their style to more "generic pill" (same as in submenus):

image image

@AdRiley is it good enough?

Copy link
Contributor

@kazcw kazcw left a comment

Choose a reason for hiding this comment

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

Code looks good; introduces new concepts that I think are worth documenting

Comment on lines 47 to 48
.content {
}
Copy link
Contributor

Choose a reason for hiding this comment

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

What is this?

}
}

/** A class used in widgets of their fragments not higher than node's "baseline" */
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
/** A class used in widgets of their fragments not higher than node's "baseline" */
/** A class used in widgets or their fragments not higher than node's "baseline" */

/** A class for widgets which want to expand their height to the entire node */
.widgetExpanded {
align-self: stretch
}
Copy link
Contributor

Choose a reason for hiding this comment

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

It's not obvious to me when these should be used. Questions I have are:

  • Is it OK for a widget not to use any of these classes?
  • Can a widget use more than one class?
  • If a widget is conditionally a parent, should it only use widgetParent conditionally?
  • What is a "fragment"?

These classes are used in a way that works now, but some clarification of their intended usage may make it easier to apply them correctly to new widgets, and ensure that they are used in a consistent way so that if we change the styling of these classes in the future side-effects are minimized.

@farmaazon
Copy link
Contributor Author

@kazcw I tried to improve docs for css classes. Are they good for you, or you still miss something?

@farmaazon farmaazon requested a review from kazcw November 18, 2025 14:27
Copy link
Contributor

@kazcw kazcw left a comment

Choose a reason for hiding this comment

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

LGTM

@farmaazon farmaazon added the CI: Ready to merge This PR is eligible for automatic merge label Nov 20, 2025
@mergify mergify bot merged commit 77bf966 into develop Nov 20, 2025
62 checks passed
@mergify mergify bot deleted the wip/farmaazon/widgets-align-to-top branch November 20, 2025 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI: Ready to merge This PR is eligible for automatic merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

On large vertical components we should align to the top

4 participants