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

Update email and In-app editor's height to sync it with the viewport height #4313

Conversation

SmitDasadia
Copy link

What change does this PR introduce?

This PR update Email and In-app editor's height to sync it with the viewport height

Why was this change needed?

The change was to add div with sx={styledContainer} and contains height, overflow and marginBottom for email editor's, email custom code and In-app editor's height.

Fixes: #4244

@github-actions github-actions bot added the stale Pull Request that needs to be reviewed label Oct 16, 2023
Copy link
Contributor

@ainouzgali ainouzgali left a comment

Choose a reason for hiding this comment

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

Hi @SmitDasadia , thanks for your contribution! Currently, it doesn't compile and does not solve the issue as it doesn't fix the actual height.
Please take another look :)

Also, if you could, its always helpful to add a screenshot of your result. We would appreciate it :)

@@ -44,6 +44,7 @@ export function EmailCustomCodeEditor({
});

return (
<div sx={styledContainer}>
Copy link
Contributor

Choose a reason for hiding this comment

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

a div doe not have sx attribute, the sx is used by Mantine components. Your code will not compile.

);
}

const styledContainer = () => ({
height: '80vh', // Adjust the percentage as needed
Copy link
Contributor

Choose a reason for hiding this comment

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

Setting a wrapper to be 80vh will not do the job, as the card itself -> the ace editor is set to a specific height (line 55). So what you did will simply result in the editor height being as it is now, unchanged, but will add a lot of empty page + scroll

@github-actions github-actions bot removed the stale Pull Request that needs to be reviewed label Oct 17, 2023
@github-actions github-actions bot added stale Pull Request that needs to be reviewed and removed stale Pull Request that needs to be reviewed labels Oct 31, 2023
@scopsy
Copy link
Contributor

scopsy commented Nov 6, 2023

Closing due to inactivity

@scopsy scopsy closed this Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[NV-2570] Update email and In-app editor's height to sync it with the viewport height
3 participants