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

Breakpoints stage 3 #1413

Merged
merged 15 commits into from
Apr 12, 2023
Merged

Breakpoints stage 3 #1413

merged 15 commits into from
Apr 12, 2023

Conversation

kof
Copy link
Member

@kof kof commented Apr 11, 2023

Description

  1. Input instead of a slider

Steps for reproduction

  1. click button
  2. expect xyz

Code Review

  • hi @TrySound , I need you to do

    • detailed review (read every line)
  • hi @istarkov , I need you to do

    • conceptual review (architecture, feature-correctness)
    • test it on preview

Before requesting a review

  • made a self-review
  • added inline comments where things may be not obvious (the "why", not "what")

Before merging

  • tested locally and on preview environment (preview dev login: 5de6)
  • updated test cases document
  • added tests
  • if any new env variables are added, added them to .env.example and the builder/env-check.js if mandatory

@vercel
Copy link

vercel bot commented Apr 11, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
webstudio-builder ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 12, 2023 0:08am

istarkov and others added 3 commits April 11, 2023 15:41
## Description

closes #956

+ In case if user not edited the value but immediately clicked to unit
select we are trying to convert em px etc values

## Steps for reproduction

1. Edit `width` value, enter 10
go to unit select set `em` - see 10em as final result

2. Click on unit select of the width, change em to px see 10em converted
to 140px or like (depends on em size)

3. Enter `Auto` in width, click Enter. 
Click on UnitSelect select EM, see browser style is used to set em
width.

4. Enter Auto in width, switch on Unit select, set px, see browser style
is used.

5. See that now unit selector is visible always. With some exclusions
like aspectRatio as it has keywords and numeric values.




## Code Review

- [x] hi @kof, I need you to do
  - conceptual review (architecture, feature-correctness)
  - detailed review (read every line)
  - test it on preview

## Before requesting a review

- [ ] made a self-review
- [ ] added inline comments where things may be not obvious (the "why",
not "what")

## Before merging

- [ ] tested locally and on preview environment (preview dev login:
5de6)
- [ ] updated [test
cases](https://github.com/webstudio-is/webstudio-builder/blob/main/apps/builder/docs/test-cases.md)
document
- [ ] added tests
- [ ] if any new env variables are added, added them to `.env.example`
and the `builder/env-check.js` if mandatory
@istarkov
Copy link
Member

istarkov commented Apr 11, 2023

Resize feels very chunky especially if any element is selected. We should not recompute styles etc during resize, only on resize end.
image
See every chunk is blocking 200ms frame

@istarkov
Copy link
Member

Adding breakpoints is confusing and has bug.

Bug is that indicator length doesn't change on adding new breakpoint, to reproduce add 1600 breakpoint, then see 768 has no indicator under

image

The other issue that until done is clicked
image
Edited breakpoint is shown at top, that's confusing as it changes it position, value etc

@istarkov
Copy link
Member

istarkov commented Apr 11, 2023

Review code contains my commit, better to rebase

@istarkov istarkov marked this pull request as ready for review April 12, 2023 09:05
@istarkov istarkov merged commit 3b0aba8 into main Apr 12, 2023
@istarkov istarkov deleted the breakpoints-stage-3 branch April 12, 2023 12:22
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.

4 participants