Skip to content

solved issue #4958#5018

Open
sauraviiitk wants to merge 1 commit intoasyncapi:masterfrom
sauraviiitk:feature/my-change
Open

solved issue #4958#5018
sauraviiitk wants to merge 1 commit intoasyncapi:masterfrom
sauraviiitk:feature/my-change

Conversation

@sauraviiitk
Copy link

@sauraviiitk sauraviiitk commented Jan 26, 2026

Description

  • ...
  • ...
  • ...

Related issue(s)

Summary by CodeRabbit

Release Notes

  • UI/UX
    • Modal titles now fully display across multiple lines with proper text wrapping, eliminating previous truncation
    • Optimized modal content height on larger viewports for improved visual balance and better screen space utilization
    • Enhanced overall spacing and layout refinement for a polished appearance

✏️ Tip: You can customize this high-level summary in your review settings.

@netlify
Copy link

netlify bot commented Jan 26, 2026

Deploy Preview for asyncapi-website ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 786c8e0
🔍 Latest deploy log https://app.netlify.com/projects/asyncapi-website/deploys/69777121e0a2010007d22336
😎 Deploy Preview https://deploy-preview-5018--asyncapi-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@asyncapi-bot
Copy link
Contributor

asyncapi-bot commented Jan 26, 2026

We require all PRs to follow Conventional Commits specification.
More details 👇🏼

 No release type found in pull request title "solved issue #4958". Add a prefix to indicate what kind of release this pull request corresponds to. For reference, see https://www.conventionalcommits.org/

Available types:
 - feat: A new feature
 - fix: A bug fix
 - docs: Documentation only changes
 - style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
 - refactor: A code change that neither fixes a bug nor adds a feature
 - perf: A code change that improves performance
 - test: Adding missing tests or correcting existing tests
 - build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
 - ci: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
 - chore: Other changes that don't modify src or test files
 - revert: Reverts a previous commit

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Welcome to AsyncAPI. Thanks a lot for creating your first pull request. Please check out our contributors guide useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 26, 2026

📝 Walkthrough

Walkthrough

The Modal component's title element is updated to support multi-line text with word breaking and whitespace normalization, replacing truncated single-line display. The content area's maximum height is reduced on large screens from 70vh to 50vh, and minor className formatting adjustments are applied throughout.

Changes

Cohort / File(s) Summary
UI/Layout Updates
components/Modal.tsx
Title element refactored to support multi-line text with break-words and whitespace normalization; reduced lg:max-h-[70vh] to lg:max-h-[50vh] for responsive content area height; minor className spacing adjustments (+5/-4 lines)

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 A modal's wardrobe, freshly styled,
Now titles flow, unconfined and wild,
Content breathes easier, space refined,
Better layout for all humankind,
Hop forth with these dapper tweaks combined!

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Title check ⚠️ Warning The title 'solved issue #4958' is vague and does not describe what was actually changed in the codebase—it references an issue without explaining the specific change made. Replace with a specific description of the change (e.g., 'Fix modal title wrapping and reduce content height') and add a Conventional Commits prefix (e.g., 'fix:' or 'style:') as required by the project's commit guidelines.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ 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

Comment @coderabbitai help to get the list of available commands and usage tips.

@asyncapi-bot
Copy link
Contributor

⚡️ Lighthouse report for the changes in this PR:

Category Score
🔴 Performance 36
🟢 Accessibility 98
🟢 Best practices 92
🟢 SEO 100
🔴 PWA 33

Lighthouse ran on https://deploy-preview-5018--asyncapi-website.netlify.app/

Copy link
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: 2

🤖 Fix all issues with AI agents
In `@components/Modal.tsx`:
- Around line 57-58: In the Modal component JSX, remove accidental double spaces
inside className strings (e.g., in the outer container div and the header div
and the element with "w-full  overflow-auto") so classes are single-space
separated; update the className values in the Modal component (the JSX divs
around the modal content and the header/scroll container) to collapse double
spaces into single spaces while preserving all class names and ordering.
- Around line 59-60: Prettier is failing because the h1 JSX element is split
across lines; collapse the opening tag, content, and closing tag into a single
line so the <h1 className='mr-4 text-lg font-bold break-words
whitespace-normal'>{title}</h1> JSX expression is one line in
components/Modal.tsx (locate the h1 element that renders the title) to satisfy
formatting rules.

Comment on lines +57 to +58
<div className='relative m-auto overflow-hidden rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl transition-all sm:w-full sm:max-w-4xl sm:p-6'>
<div className='mb-6 flex justify-between'>
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Remove unintentional double spaces in className strings.

Lines 57, 58, and 74 contain double spaces in the className strings (e.g., bg-white px-4, mb-6 flex, w-full overflow-auto). These appear to be formatting artifacts rather than intentional.

Proposed fix
-      <div className='relative m-auto overflow-hidden rounded-lg bg-white  px-4 pb-4 pt-5 text-left shadow-xl transition-all sm:w-full sm:max-w-4xl sm:p-6'>
-        <div className='mb-6  flex justify-between'>
+      <div className='relative m-auto overflow-hidden rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl transition-all sm:w-full sm:max-w-4xl sm:p-6'>
+        <div className='mb-6 flex justify-between'>
-        <div className='max-h-[65vh] w-full  overflow-auto lg:max-h-[50vh]'>{children}</div>
+        <div className='max-h-[65vh] w-full overflow-auto lg:max-h-[50vh]'>{children}</div>

Also applies to: 74-74

🤖 Prompt for AI Agents
In `@components/Modal.tsx` around lines 57 - 58, In the Modal component JSX,
remove accidental double spaces inside className strings (e.g., in the outer
container div and the header div and the element with "w-full  overflow-auto")
so classes are single-space separated; update the className values in the Modal
component (the JSX divs around the modal content and the header/scroll
container) to collapse double spaces into single spaces while preserving all
class names and ordering.

Comment on lines +59 to +60
<h1 className='mr-4 text-lg font-bold break-words whitespace-normal'>
{title}</h1>
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

Fix Prettier formatting error to unblock CI.

The pipeline is failing due to the line break between the h1 opening tag and closing tag. Prettier expects this to be on a single line.

Proposed fix
-        <h1 className='mr-4 text-lg font-bold break-words whitespace-normal'>
-            {title}</h1>
+          <h1 className='mr-4 text-lg font-bold break-words whitespace-normal'>{title}</h1>
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<h1 className='mr-4 text-lg font-bold break-words whitespace-normal'>
{title}</h1>
<h1 className='mr-4 text-lg font-bold break-words whitespace-normal'>{title}</h1>
🧰 Tools
🪛 GitHub Actions: PR testing - if Node project

[error] 59-59: Prettier formatting error. Replace the line break in the h1 tag to satisfy prettier/prettier.

🤖 Prompt for AI Agents
In `@components/Modal.tsx` around lines 59 - 60, Prettier is failing because the
h1 JSX element is split across lines; collapse the opening tag, content, and
closing tag into a single line so the <h1 className='mr-4 text-lg font-bold
break-words whitespace-normal'>{title}</h1> JSX expression is one line in
components/Modal.tsx (locate the h1 element that renders the title) to satisfy
formatting rules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: To Be Triaged

Development

Successfully merging this pull request may close these issues.

2 participants