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

(fix) O3-2852: Fix the viewport size of the Start Visit form on tablet #1765

Merged
merged 4 commits into from
May 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -13,7 +13,6 @@

.heading {
@include type.type-style("heading-03");

margin: spacing.$spacing-05;
}

Expand Down Expand Up @@ -46,7 +45,7 @@
display: flex;
flex-direction: column;
justify-content: space-between;
height: calc(100vh - 6rem);
Copy link
Member

Choose a reason for hiding this comment

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

@Madhu-mac changing the height to 100vh breaks the UI on the desktop viewport. The correct values are:

  • var(--desktop-workspace-window-height) for desktop
  • var(--tablet-workspace-window-height) for tablet

As defined here

This is what the corresponding UI looks like following those changes:

Desktop

CleanShot 2024-05-09 at 1  54 56@2x

Tablet

CleanShot 2024-05-09 at 1  54 42@2x

height: var(--desktop-workspace-window-height);
}

.button {
Expand Down Expand Up @@ -104,4 +103,8 @@
}
}
}

.form {
height: var(--tablet-workspace-window-height);
}
}