Skip to content

fixed email composer bottom pannel breaking issue if email content gr…#1351

Closed
maniksharma424 wants to merge 1 commit intoMail-0:stagingfrom
maniksharma424:style/fixed-email-composer-bottom-pannel
Closed

fixed email composer bottom pannel breaking issue if email content gr…#1351
maniksharma424 wants to merge 1 commit intoMail-0:stagingfrom
maniksharma424:style/fixed-email-composer-bottom-pannel

Conversation

@maniksharma424
Copy link
Copy Markdown
Contributor

@maniksharma424 maniksharma424 commented Jun 18, 2025

Screenshot 2025-06-18 at 11 44 08 AM (2)

While composing the email both parent container and the child had max-h-[500px] which resulted in breaking the bottom bar when email content grows over 500px .
There's no need to have max height property on the children (email content container) as the body container is already taking up the remaining height
PR:
Screenshot 2025-06-18 at 11 43 29 AM (2)

Summary by CodeRabbit

  • Style
    • Updated the email composer layout to remove the maximum height restriction, allowing the content area to expand vertically as needed.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Jun 18, 2025

Walkthrough

The maximum height constraint (max-h-[500px]) was removed from the main scrollable container in the EmailComposer component. This change affects only the CSS classes, allowing the container to expand vertically without a 500px limit. No logic, event handling, or control flow was altered.

Changes

File(s) Change Summary
apps/mail/components/create/email-composer.tsx Removed max-h-[500px] class from scrollable container; layout-only CSS update

Sequence Diagram(s)

No sequence diagram generated, as the change is purely a CSS/layout adjustment.

Possibly related PRs

  • fix #997: Modifies CSS classes for maximum height and background styling in the same EmailComposer component, impacting layout and sizing.

Poem

The composer grows, no longer confined,
Its height unbound, by code redesigned.
Scrollbars may wander, the view may expand,
As rabbits compose with a freer hand.
🐇✉️

No more 500px—let the messages flow,
In the fields where tall emails grow!

✨ Finishing Touches
  • 📝 Generate Docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between d049e9e and 39dcff9.

📒 Files selected for processing (1)
  • apps/mail/components/create/email-composer.tsx (1 hunks)

)}
>
<div className="no-scrollbar dark:bg-panelDark max-h-[500px] grow overflow-y-auto">
<div className="no-scrollbar dark:bg-panelDark grow overflow-y-auto">
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot Jun 18, 2025

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Make outer container a flex column for proper grow behavior

The inner scrollable div uses the grow class but its parent isn’t a flex container, so grow has no effect. Convert the outer wrapper to a flex column to ensure the message area expands correctly and the bottom panel stays pinned.

Apply this diff:

-<div
-  className={cn(
-    'no-scrollbar max-h-[500px] w-full max-w-[750px] overflow-hidden rounded-2xl bg-[#FAFAFA] p-0 py-0 shadow-sm dark:bg-[#202020]',
-    className,
-  )}
->
+<div
+  className={cn(
+    'flex flex-col no-scrollbar max-h-[500px] w-full max-w-[750px] overflow-hidden rounded-2xl bg-[#FAFAFA] p-0 py-0 shadow-sm dark:bg-[#202020]',
+    className,
+  )}
+>

Committable suggestion skipped: line range outside the PR's diff.

🤖 Prompt for AI Agents
In apps/mail/components/create/email-composer.tsx at line 462, the outer
container div needs to be changed to a flex container with column direction to
enable the inner div's grow class to work properly. Update the className of the
outer div to include "flex flex-col" so that the inner scrollable div expands
correctly and the bottom panel remains pinned.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@maniksharma424 please address

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Seems like the humans are having a chat. I'll hop back into my burrow for now. If you need me again, just tag @coderabbitai in a new comment, and I'll come hopping out!

@MrgSub
Copy link
Copy Markdown
Collaborator

MrgSub commented Jun 24, 2025

Closed in another PR

@MrgSub MrgSub closed this Jun 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants