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: fixed layout shift on form page change #78

Merged
merged 1 commit into from
Oct 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions components/Dashboard/ReviewForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ const ReviewForm: React.FC<ReviewFormProps> = (props) => {
background: `linear-gradient(to top right, ${primaryColor}, ${bgColor})`,
}}
/>
<div className="flex h-full w-full items-center justify-center overflow-y-auto p-4 py-10">
<div className="gutter_stable flex h-full w-full items-center justify-center overflow-y-auto p-4 py-10">
{/* Design */}
{currentStepId === 'WELCOME_PAGE' && (
<div className="relative w-full max-w-lg rounded-xl bg-white p-6 pt-4 shadow-lg">
<div className="absolute -top-3.5 right-3 flex dark:text-black items-center gap-2 rounded-full border bg-white px-4 py-1 text-sm">
<div className="absolute -top-3.5 right-3 flex items-center gap-2 rounded-full border bg-white px-4 py-1 text-sm dark:text-black">
<HeartFilledIcon className="h-4 w-4" />
Powered by Review
</div>
Expand Down Expand Up @@ -143,7 +143,6 @@ const ReviewForm: React.FC<ReviewFormProps> = (props) => {
className="mt-4 resize-none"
rows={7}
required

/>
<Button
style={{ background: primaryColor }}
Expand Down
4 changes: 4 additions & 0 deletions styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,7 @@ body,
transparent
);
}

.gutter_stable {
scrollbar-gutter: stable;
}
Loading