Skip to content

Fix#360 제휴처(매드스카이)이미지 변경#361

Merged
kimgho merged 2 commits intomainfrom
fix#360
Aug 23, 2025
Merged

Fix#360 제휴처(매드스카이)이미지 변경#361
kimgho merged 2 commits intomainfrom
fix#360

Conversation

@kimgho
Copy link
Contributor

@kimgho kimgho commented Aug 23, 2025

✅ Linked Issue

🔍 What I did

  • 긴 이미지를 위한 tall 스타일 추가

Summary by CodeRabbit

  • Style
    • Improved carousel image rendering: tall images now display fully without unwanted cropping, using a “contain” fit to preserve the entire image.
    • Enhanced visual consistency in the review/partnership carousel, ensuring images scale appropriately across different aspect ratios.
    • Transparent background applied for tall variants to prevent visual artifacts on varying themes.
    • Users should notice cleaner, more consistent image presentation in the carousel, especially for taller logos or graphics.

@vercel
Copy link

vercel bot commented Aug 23, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
mosu-client Ready Ready Preview Comment Aug 23, 2025 11:13am

@kimgho kimgho moved this to 진행중 in mosu-client Aug 23, 2025
@coderabbitai
Copy link

coderabbitai bot commented Aug 23, 2025

Walkthrough

Introduces a tall-image CSS modifier in ReviewSection.module.scss and applies it conditionally in ReviewSection.tsx for a specific carousel item based on its imgSrc value. No other functional or structural changes.

Changes

Cohort / File(s) Summary
Home Review Section styles
mosu-app/src/widgets/home/ReviewSection.module.scss
Adds .carousel_item__image_tall via nested &_tall with object-fit: contain and transparent background to handle tall images, overriding the base object-fit: cover.
Home Review Section component
mosu-app/src/widgets/home/ReviewSection.tsx
Updates PartnershipCarousel to conditionally append styles.carousel_item__image_tall when item.imgSrc === imgCarousel1; otherwise retains existing class.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  participant U as User
  participant C as PartnershipCarousel (React)
  participant IMG as <Image/>

  U->>C: Render carousel
  C->>C: Check item.imgSrc === imgCarousel1
  alt Tall image
    C->>IMG: Render with class "carousel_item__image carousel_item__image_tall"
  else Regular image
    C->>IMG: Render with class "carousel_item__image"
  end
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Assessment against linked issues

Objective Addressed Explanation
매드스카이 이미지 변경 (#360) Only styling/class condition added; unclear if the actual image asset change is included.

Poem

I nudge the carousel with a hop and a grin,
A taller frame now gently tucks images in.
No crunch, no crop—just spacious delight,
Mad sky stretches softly into the night.
Thump-thump! says the code—neat, tidy, small,
A rabbit-approved tweak for images tall. 🐇✨

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix#360

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.
    • 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.
  • 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 the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

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

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

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

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • 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.

@github-actions
Copy link

Messages
📖 ✅ PR 제목에 이슈 번호가 포함되어 있습니다.
📖 ✅ PR에 Reviewers가 지정되어 있습니다.
📖 ✅ PR에 라벨이 지정되어 있습니다.
📖 ✅ PR에 Assignees가 지정되어 있습니다.
📖 ✅ package.json에 변경사항이 없습니다.
📖 ✅ 브랜치 이름 'fix#360'이 컨벤션을 따릅니다.
📖 ✅ TypeScript 컴파일이 성공적으로 완료되었습니다.
📖 ✅ ESLint 검사 결과 문제가 없습니다.

📝 추가 및 변경된 파일

총 3개 파일 변경

└── 📂 mosu-app/
    └── 📂 src/
        └── 📂 widgets/
            └── 📂 home/
                ├── 📄 ReviewSection.module.scss
                ├── ⚛️ ReviewSection.tsx
                └── 📂 assets/
                    └── 🖼️ carousel-1.jpeg

Generated by 🚫 dangerJS against 6f64493

Copy link

@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: 0

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
mosu-app/src/widgets/home/ReviewSection.tsx (1)

195-203: Avoid hardcoding the tall style to a specific import; also fix reverse‑tabnabbing on window.open

  • The conditional item.imgSrc === imgCarousel1 is brittle. If the order changes or the image is swapped, the styling may apply incorrectly. Prefer a data-driven or orientation-based condition.
  • Security: window.open(..., "_blank") without noopener,noreferrer enables reverse‑tabnabbing.

Minimal change (orientation-based check using StaticImageData dimensions, no type changes):

- className={`${styles.carousel_item__image} ${
-     item.imgSrc === imgCarousel1 ? styles.carousel_item__image_tall : ""
- }`}
+ className={`${styles.carousel_item__image} ${
+     item.imgSrc.height > item.imgSrc.width ? styles.carousel_item__image_tall : ""
+ }`}

Harden window.open:

- onClick={() => item.href && window.open(item.href, "_blank")}
+ onClick={() => {
+   if (!item.href) return;
+   const w = window.open(item.href, "_blank", "noopener,noreferrer");
+   if (w) w.opener = null;
+ }}

Alternatively (clearer, future-proof): carry an explicit flag.

  • Update prop type and data (outside the changed hunk):
// type
export interface PartnershipCarouselProps {
  carouselItems: Array<{
    href?: string;
    imgSrc: StaticImageData;
    isTall?: boolean;
  }>;
}

// usage
carouselItems={[
  { href: "...medsky.co.kr...", imgSrc: imgCarousel1, isTall: true },
  { href: "...", imgSrc: imgCarousel2 },
  { href: "...", imgSrc: imgCarousel3 },
]};
  • Then simplify the className (diff applies to this hunk):
- className={`${styles.carousel_item__image} ${
-     item.imgSrc === imgCarousel1 ? styles.carousel_item__image_tall : ""
- }`}
+ className={`${styles.carousel_item__image} ${item.isTall ? styles.carousel_item__image_tall : ""}`}

Optional nits:

  • Consider unique, descriptive alt text per partner for accessibility.
🧹 Nitpick comments (1)
mosu-app/src/widgets/home/ReviewSection.module.scss (1)

96-99: Tall variant makes sense; consider minor cleanup and verify override precedence

  • The _tall modifier is a reasonable way to handle portrait/tall assets.
  • background-color: transparent; is redundant (transparent is default). The parent already has a black background, so letterboxing will appear black regardless.

If you want to keep the letterbox area explicitly styled, set it to #000; otherwise, drop it:

&_tall {
   object-fit: contain;
-  background-color: transparent;
+  /* parent background is already #000; transparent is default */
}

Also verify that in the compiled CSS the _tall rule appears after .carousel_item__image so object-fit: contain reliably overrides cover in all bundling modes.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 11a834a and 6f64493.

⛔ Files ignored due to path filters (1)
  • mosu-app/src/widgets/home/assets/carousel-1.jpeg is excluded by !**/*.jpeg
📒 Files selected for processing (2)
  • mosu-app/src/widgets/home/ReviewSection.module.scss (1 hunks)
  • mosu-app/src/widgets/home/ReviewSection.tsx (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: Run Unit & Integration Tests
  • GitHub Check: Run DangerJS

@github-actions
Copy link

📚 Storybook이 Chromatic에 배포되었습니다!

@kimgho kimgho merged commit a49c231 into main Aug 23, 2025
10 checks passed
@kimgho kimgho deleted the fix#360 branch August 23, 2025 11:41
@github-project-automation github-project-automation bot moved this from 진행중 to 완료 in mosu-client Aug 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: 완료

Development

Successfully merging this pull request may close these issues.

[✍️ 기능 변경 요청] 매드스카이 이미지 변경

1 participant