Skip to content

Conversation

@abelsiqueira
Copy link
Collaborator

Pull request details

List of related issues or pull requests

Refs:

Describe the changes made in this pull request

When the screen is smaller than md size, use a overlay drawer for the cff preview instead of occupying space.
This PR consists of

  • Adding a toggle button to the header when screen is md or smaller
  • Adding a overlay drawer in the right right the cff preview when screen is md or smaller
  • Remove the cff preview when the screen is lg or larger
  • Changes many column classes for the form of each screen in adjustment to these changes (Refactor LayoutStepper and ScreenX #451 would have made this easier)

Instructions to review the pull request

Verify in the preview that the screen is responsive, that the fields are readable in half screen, and that the author edit fields are readable in half-screen. Test the toggle with different sizes.

@github-actions
Copy link

Once the build has completed, you can preview your PR at this URL: https://cffinit.netlify.app/PR616/

@github-actions
Copy link

Once the build has completed, you can preview your PR at this URL: https://cffinit.netlify.app/PR616/

@abelsiqueira
Copy link
Collaborator Author

For md screens it looks good (almost unnecessary).
For medium-large sm screens it looks good.
For small sm screens it still looks cramped.
For xs screens, it changes to single-column layout, but that should be an edge case.

@abelsiqueira
Copy link
Collaborator Author

I would spawn an issue for responsiveness in small sm screens.

@abelsiqueira abelsiqueira marked this pull request as draft August 16, 2022 07:26
@abelsiqueira abelsiqueira marked this pull request as ready for review August 16, 2022 11:49
@github-actions
Copy link

Once the build has completed, you can preview your PR at this URL: https://cffinit.netlify.app/PR616/

<div id="app">
<q-header id="header-inner">
<Header />
<Header v-on:togglePreview="togglePreview" />
Copy link
Member

Choose a reason for hiding this comment

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

can you rename 'togglePreview' as 'onTogglePreview'

Copy link
Member

@fdiblen fdiblen left a comment

Choose a reason for hiding this comment

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

Looks good @abelsiqueira . 🍖 Suggested a minor changes.

elevated
overlay
side="right"
v-model="previewDrawer"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
v-model="previewDrawer"
v-model="isPreviewDrawerEnabled"

@github-actions
Copy link

Once the build has completed, you can preview your PR at this URL: https://cffinit.netlify.app/PR616/

Copy link
Member

@fdiblen fdiblen left a comment

Choose a reason for hiding this comment

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

LGTM 🎲

@abelsiqueira
Copy link
Collaborator Author

Thanks for the review. 🦅

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.

3 participants