Skip to content

Conversation

@paulcam206
Copy link
Member

@paulcam206 paulcam206 commented Sep 14, 2021

Related Issue

Fixes #6263

Description

A bevy of fixes for the designer on small screens. Pushes a bunch of runtime-defined CSS styles into classes so that they can be overridden by media queries at render time. Below 500px width, we shift to a vertical scroll model which, while not ideal from a usability perspective, at least allows the user to access all of the content, which was not possible before. Having a more usable experience is something that will require design resources which we'll have to engage at a later time (see #6313).

Screenshots

Before

Main

(note: no scrollbars)
image

New Card Dialog

(large margins)
image

After

Main

image

New Card Dialog

image

How Verified

Manual testing

Microsoft Reviewers: Open in CodeFlow

@ghost
Copy link

ghost commented Sep 14, 2021

Hi @paulcam206. Thanks for helping make the AdaptiveCards JS renderer + tooling better. As additional verification, once the JS build succeeds, please go to the test site to test out your website/designer changes.

@paulcam206 paulcam206 changed the title [Designer] Make small-x-dimension scenario basically work [Designer] Make everything accessible at high zoom levels Sep 14, 2021
Copy link
Member

@dclaux dclaux 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 overall, however:

  • In "mini" mode, dragging a new element onto the card makes the card basically disappear. I believe this happens because the associated item in the treeview is forced into view, which works with the normal layout but not when all panes are stacked on top of each other
  • You apparently have the threshold set to 501px horizontally, but the designer starts being unusable well before that. Would it make sense to change the threshold to something a little higher?

@paulcam206 paulcam206 force-pushed the paulcam/designer-pass-small-screen branch from b367aa8 to 9961ca2 Compare September 18, 2021 02:30
@paulcam206
Copy link
Member Author

Looks good overall, however:

  • In "mini" mode, dragging a new element onto the card makes the card basically disappear. I believe this happens because the associated item in the treeview is forced into view, which works with the normal layout but not when all panes are stacked on top of each other

the scroll-in-to-view fix was pretty easy, but the drag/drop overlay fix was a little gnarly (there was some math that didn't account for scroll position (because there wasn't a need to before)).

  • You apparently have the threshold set to 501px horizontally, but the designer starts being unusable well before that. Would it make sense to change the threshold to something a little higher?

I set it to 651px since that's about as small as you can go and still sort of use everything...

@paulcam206 paulcam206 merged commit e11d7a7 into main Sep 22, 2021
@paulcam206 paulcam206 deleted the paulcam/designer-pass-small-screen branch September 22, 2021 17:49
vivekkozhisseri pushed a commit to BigThinkcode/AdaptiveCards that referenced this pull request Sep 30, 2021
* Toggle input in c++/winrt! (microsoft#6303)

* Toggle input in c++/winrt!

* PR Feedback

* Fix return value

* Merge Jonwis' object model conversion into UWP (microsoft#6322)

* Merge u/jonwis/winui3 from fork

* Copy object model changes from winappsdk to uwp

* Delete winappsdk directory

* Rename WinUI3 to Uwp - everything builds

* Testing, bug fixes, and cleanup

* Fix propert_opt setter

* Version and package changes

* Remove nuget source from nuget config

* version changes

* Update package pushing readme

Co-authored-by: Jon Wiswall <[email protected]>
Co-authored-by: almedina-ms <[email protected]>

* [Designer] Make everything accessible at high zoom levels (microsoft#6320)

* [Designer] Make small-x-dimension scenario basically work

Fixes microsoft#6263

* Tabs feedback

* Fix drag/drop and random scrolling

* Per triage, Xamarin is deprecated, so no need to hold on to this old unsupported code (microsoft#6255)

* [Shared] Add `password` `Input.Text` support (microsoft#6377)

* [Shared] Add `password` `Input.Text` support

Fixes microsoft#6340

* PR feedback

* [iOS] removed custom background color to return to system default (microsoft#6378)

* [iOS] Updated Radio Buttons / Check Boxes Contrast Ratio (microsoft#6372)

Co-authored-by: Paul Campbell <[email protected]>

* Set wrapping to true for accessibility fix (microsoft#6324)

Co-authored-by: Paul Campbell <[email protected]>

* Fix link traversal (microsoft#6317)

Co-authored-by: Paul Campbell <[email protected]>

* [iOS] Updated vertical content alignment, height and toggle Visibility (microsoft#6329)

* [iOS] Fixed microsoft#6219

* [iOS] adding padding support to toggle visibility

* [Padding] Update

* [iOS] work in progress

* mostly done need to refactor and update padding management code

* [iOS] refactored

* [iOS] added padding test

* refactored the padding configuration in FactSet to Padding Handler

* [iOS] Updated VerticalContentAlignment and Height

* Reverts samples card changes

* [iOS] code clean-up

* [iOS] CR update

* [iOS] CR update

* Add implementation and tests (microsoft#6406)

Co-authored-by: Paul Campbell <[email protected]>

* [UWP] Fix risky cast in `GenerateElementProjection()` (microsoft#6412)

* [UWP] Fix risky cast in `GenerateElementProjection()`

Fixes microsoft#6394

* Fix PR feedback

* Fix style behaviour (microsoft#6419)

Co-authored-by: Paul Campbell <[email protected]>

* [JS] Add Password support to Input.Text (microsoft#6407)

* Add Password to style list

* Fix comparator

* Change property implementation to contain version info in new enum value

Co-authored-by: Paul Campbell <[email protected]>

* [iOS] Password Masking (microsoft#6411)

* [iOS] Password implementation

* [iOS] Updated unit tests and added sample json

* Update Input.Text.PasswordStyle.json

Co-authored-by: almedina-ms <[email protected]>

* [iOS] Table Horizontal Alignment Update (microsoft#6401)

* [iOS] Fixed microsoft#6219

* [iOS] adding padding support to toggle visibility

* [Padding] Update

* [iOS] work in progress

* mostly done need to refactor and update padding management code

* [iOS] refactored

* [iOS] added padding test

* refactored the padding configuration in FactSet to Padding Handler

* [iOS] Updated VerticalContentAlignment and Height

* Reverts samples card changes

* [iOS] code clean-up

* [iOS] Table Update

* [iOS] Updated Table with better Horizontal Alignment

Co-authored-by: Paul Campbell <[email protected]>

* [iOS/Android/UWP/Shared] Fix handling of orphaned table child elements (microsoft#6408)

* [Shared] Fix parsing of `TableRow` and `TableCell` outside of `Table`

Fixes microsoft#6393

* SWIG updates

* Fix up Android rendering

* Fix up iOS

* Fix up UWP

Co-authored-by: Paul Campbell <[email protected]>

* Enabling blank issues for internal team use (microsoft#6445)

Co-authored-by: RebeccaAnne <[email protected]>
Co-authored-by: Jon Wiswall <[email protected]>
Co-authored-by: almedina-ms <[email protected]>
Co-authored-by: Paul Campbell <[email protected]>
Co-authored-by: Joseph Woo <[email protected]>
Co-authored-by: Paul Campbell <[email protected]>
Co-authored-by: Jonathan Miller <[email protected]>
michaelfarnsworth pushed a commit to michaelfarnsworth/AdaptiveCards that referenced this pull request Nov 10, 2022
…6320)

* [Designer] Make small-x-dimension scenario basically work

Fixes microsoft#6263

* Tabs feedback

* Fix drag/drop and random scrolling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Accessibility Bugs around feature accessibility Area-Designer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Designer]: At 400% zoom, All content present on "Pick a sample as a starting point" window are not visible.

5 participants