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

Resize grid cell if the element is set to fill, resize the element otherwise #6347

Merged
merged 3 commits into from
Sep 10, 2024

Conversation

ruggi
Copy link
Contributor

@ruggi ruggi commented Sep 10, 2024

Problem:

Currently when a grid element is selected, it's only possible to resize it's cell.

Fix:

This PR expands the functionality in two ways:

  1. if the selected element is set to fill on both width and height, show the cell resize controls
  2. otherwise, show the regular element resize controls
Screen.Recording.2024-09-10.at.13.27.26.mov

Fixes #6348

Copy link
Contributor

github-actions bot commented Sep 10, 2024

Try me

Copy link

relativeci bot commented Sep 10, 2024

#14165 Bundle Size — 62.61MiB (+0.09%).

0608fe0(current) vs 916e8b9 master#14160(baseline)

Warning

Bundle contains 70 duplicate packages – View duplicate packages

Bundle metrics  Change 5 changes Regression 2 regressions
                 Current
#14165
     Baseline
#14160
Regression  Initial JS 45.74MiB(+0.13%) 45.68MiB
No change  Initial CSS 0B 0B
Change  Cache Invalidation 22.24% 21.58%
No change  Chunks 30 30
No change  Assets 33 33
Change  Modules 4385(+0.09%) 4381
Regression  Duplicate Modules 523(+0.58%) 520
Change  Duplicate Code 31.65%(+0.13%) 31.61%
No change  Packages 472 472
No change  Duplicate Packages 70 70
Bundle size by type  Change 2 changes Regression 1 regression Improvement 1 improvement
                 Current
#14165
     Baseline
#14160
Regression  JS 62.6MiB (+0.09%) 62.54MiB
Improvement  HTML 11.12KiB (-0.32%) 11.16KiB

Bundle analysis reportBranch feat/grid-resize-split-fillProject dashboard


Generated by RelativeCIDocumentationReport issue

@ruggi ruggi changed the title resize cell on fill, element otherwise Resize grid cell if the element is set to fill, resize the element otherwise Sep 10, 2024
# Conflicts:
#	editor/src/components/canvas/canvas-strategies/strategies/grid-reparent-strategy.tsx
#	editor/src/components/canvas/canvas-strategies/strategies/grid-resize-element-strategy.spec.browser2.tsx
@ruggi ruggi marked this pull request as ready for review September 10, 2024 12:31
@ruggi ruggi merged commit 1293ce4 into master Sep 10, 2024
17 checks passed
@ruggi ruggi deleted the feat/grid-resize-split-fill branch September 10, 2024 13:40
liady pushed a commit that referenced this pull request Dec 13, 2024
…herwise (#6347)

**Problem:**

Currently when a grid element is selected, it's only possible to resize
it's _cell_.

**Fix:**

This PR expands the functionality in two ways:

1. if the selected element is set to fill on both width and height, show
the _cell_ resize controls
2. otherwise, show the regular _element_ resize controls



https://github.com/user-attachments/assets/9e1ad8ac-0dae-43c2-b0f0-c282152e884b



Fixes #6348
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.

Resize cell vs. element
4 participants