Skip to content

Conversation

@faisal-alvi
Copy link
Contributor

Description of the Change

It was observed that the Request form requires a height of 1630 pixels, while the Booking form needs 600 pixels. This PR updates the block editor to apply these required heights accordingly.
Note: This change only affects the block editor view and does not impact the front-end display.

Closes #42

How to test the Change

  1. Build the project
  2. Visit the block editor
  3. Confirm that the Jobber block displays the full-height form

Changelog Entry

Fixed - Request form content not fully visible in the block editor

Credits

Props @ankitguptaindia @dkotter @faisal-alvi

Checklist:

@faisal-alvi faisal-alvi added this to the 1.0.0 milestone May 9, 2025
@faisal-alvi faisal-alvi requested a review from dkotter May 9, 2025 15:04
@faisal-alvi faisal-alvi self-assigned this May 9, 2025
style={{
border: '1px dashed #E0E0E0',
height: '500px',
height: formType === 'request' ? '1630px' : '600px',
Copy link
Collaborator

@dkotter dkotter May 9, 2025

Choose a reason for hiding this comment

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

In my testing, the Booking form was about 340px tall so 600px adds lots of extra white space. I know it's hard to know for sure the height of each of those forms since I'm assuming it will depend on how each person has these configured but wondering if reducing it from 600 to 400 is a nicer middle ground?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, it was around 590px for me on the front end – not sure why there’s a difference, but agreed that 400px seems like a nicer middle ground.

@faisal-alvi faisal-alvi requested a review from dkotter May 12, 2025 14:33
@dkotter dkotter marked this pull request as ready for review May 12, 2025 16:37
@github-actions github-actions bot added the needs:code-review This requires code review. label May 12, 2025
@dkotter dkotter merged commit cdf6d7a into develop May 12, 2025
8 checks passed
@dkotter dkotter deleted the fix/42 branch May 12, 2025 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs:code-review This requires code review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Request Form Content Not Fully Visible in Editor

2 participants