Skip to content

feat: improve default dh.ui layouts#411

Merged
dsmmcken merged 7 commits into
mainfrom
dmckenzie_ui_flex_defaults
Apr 17, 2024
Merged

feat: improve default dh.ui layouts#411
dsmmcken merged 7 commits into
mainfrom
dmckenzie_ui_flex_defaults

Conversation

@dsmmcken
Copy link
Copy Markdown
Contributor

@dsmmcken dsmmcken commented Apr 12, 2024

  • ui.panel now has default padding and gaps
  • ui.panel now accepts a subset of flex and view props
  • ui.panel now wraps children in view and flex containers
  • ui.panels with only one child (of type grid or plot) have padding removed
  • ui.flex flex property now defaults to "auto"
  • ui.flex/ui.view switched to use the wrapped @deephaven/component version
  • updated package.json to use latest linting rules (to ignore UNSAFE casing)
  • Fixes ui.flex defaults #317

Breaking changes:

  • ui.panel now has default padding and gaps
  • ui.flex flex property now defaults to "auto"

- ui.panel now has default padding and gaps
- ui.panel now accepts a subset of flex and view props
- ui.panel now wraps children in view and flex containers
- ui.panels with only one child (of type grid or plot) have padding removed
- ui.flex flex property now defaults to "auto"
- ui.flex/ui.view switched to use the wrapped @deephaven/component version
- updated package.json to use latest linting rules (to ignore UNSAFE casing)

Breaking changes:
- ui.panel now has default padding and gaps
- ui.flex flex property now defaults to "auto"
@dsmmcken dsmmcken requested review from bmingles and mofojed April 12, 2024 21:29
Comment thread plugins/ui/src/js/src/elements/spectrum/View.tsx Outdated
@dsmmcken dsmmcken requested a review from bmingles April 17, 2024 18:07
Comment thread plugins/ui/src/deephaven/ui/components/spectrum/flex.py
bmingles
bmingles previously approved these changes Apr 17, 2024
Copy link
Copy Markdown
Contributor

@bmingles bmingles left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Member

@mofojed mofojed left a comment

Choose a reason for hiding this comment

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

Pull the playwright change into a separate PR

Comment thread package.json Outdated
Comment thread plugins/ui/src/js/src/layout/ReactPanel.tsx
@dsmmcken dsmmcken merged commit 67f82e3 into main Apr 17, 2024
@dsmmcken dsmmcken deleted the dmckenzie_ui_flex_defaults branch April 17, 2024 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ui.flex defaults Column spacing in ui.flex is not as expected, and is often non-deterministic

3 participants