Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Fix dialogs being blurry and not scrollable #2405

Merged
merged 1 commit into from
Feb 27, 2024

Conversation

sandhose
Copy link
Member

@sandhose sandhose commented Feb 27, 2024

This positions dialogs with a flexbox layout, which avoids the weird bluriness due to transform: translate and allows the dialog to be scrollable.

Story to try out: https://quenting-frontend-fix-modal.matrix-authentication-service-docs.pages.dev/storybook/?path=/story/ui-dialog--long-text

@sandhose sandhose added the A-Frontend Changes on the React frontend label Feb 27, 2024
Copy link

cloudflare-workers-and-pages bot commented Feb 27, 2024

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: bd2a555
Status: ✅  Deploy successful!
Preview URL: https://39056b34.matrix-authentication-service-docs.pages.dev
Branch Preview URL: https://quenting-frontend-fix-modal.matrix-authentication-service-docs.pages.dev

View logs

@sandhose sandhose force-pushed the quenting/frontend/fix-modal-scroll branch from a1fd81c to 0d84fe5 Compare February 27, 2024 11:16
@sandhose sandhose requested a review from t3chguy February 27, 2024 11:23
Copy link
Member

@t3chguy t3chguy left a comment

Choose a reason for hiding this comment

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

Looks like CSS

This positions dialogs with a flexbox layout, which avoids the weird
bluriness due to `transform: translate` and allows the dialog to be
scrollable.

It also adds a story which has a long content to test the scrollability.
@sandhose sandhose force-pushed the quenting/frontend/fix-modal-scroll branch from 0d84fe5 to bd2a555 Compare February 27, 2024 11:30
@sandhose sandhose enabled auto-merge (rebase) February 27, 2024 11:31
@sandhose sandhose disabled auto-merge February 27, 2024 11:37
@sandhose sandhose merged commit 696dd2d into main Feb 27, 2024
12 checks passed
@sandhose sandhose deleted the quenting/frontend/fix-modal-scroll branch February 28, 2024 16:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Frontend Changes on the React frontend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants