Skip to content

fix:修复桌面端宽度不足时Mirror酱和左边下载按钮堆叠的问题#18

Merged
Aliothmoon merged 1 commit intoMaaEnd:mainfrom
wanqian-windrunner:bug-fix
Feb 18, 2026
Merged

fix:修复桌面端宽度不足时Mirror酱和左边下载按钮堆叠的问题#18
Aliothmoon merged 1 commit intoMaaEnd:mainfrom
wanqian-windrunner:bug-fix

Conversation

@wanqian-windrunner
Copy link
Contributor

@wanqian-windrunner wanqian-windrunner commented Feb 8, 2026

宽度不足时会自动换行为如下效果
image

Summary by Sourcery

Bug Fixes:

  • 确保主下载控件和镜像(Mirror)部分在较窄的桌面宽度下能够正确换行和收缩,避免堆叠或重叠。
Original summary in English

Summary by Sourcery

Bug Fixes:

  • Ensure the main download controls and Mirror section wrap and shrink appropriately to avoid stacking or overlap on narrow desktop widths.

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

嗨,我已经查看了你的更改,看起来非常棒!


Sourcery 对开源项目是免费的——如果你觉得我们的评审有帮助,欢迎分享 ✨
帮我变得更有用!请在每条评论上点 👍 或 👎,我会根据你的反馈改进后续的评审。
Original comment in English

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adjusts the Hero download action layout so that on narrower desktop widths the primary download controls and the “Mirror” section can wrap cleanly instead of visually stacking/overlapping.

Changes:

  • Enable wrapping on the desktop flex row (md:flex-wrap) for the primary action container.
  • Prevent the primary download group and mirror block from shrinking (flex-shrink-0) so they wrap instead of compressing.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +354 to 355
<div className="flex flex-shrink-0 items-center gap-3">
{/* 主下载按钮 - 自动检测系统 */}
Copy link

Copilot AI Feb 8, 2026

Choose a reason for hiding this comment

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

For consistency with the rest of this file’s Tailwind classes (e.g. shrink-0 used elsewhere), consider using shrink-0 here instead of flex-shrink-0 (they’re equivalent in Tailwind).

Copilot uses AI. Check for mistakes.

{/* 第二行:Mirror酱 */}
<div className="relative w-full border-2 border-dashed border-[#008fa6]/40 p-[2px] md:w-auto md:max-w-[320px] dark:border-[#00F0FF]/40">
<div className="relative w-full flex-shrink-0 border-2 border-dashed border-[#008fa6]/40 p-[2px] md:w-auto md:max-w-[320px] dark:border-[#00F0FF]/40">
Copy link

Copilot AI Feb 8, 2026

Choose a reason for hiding this comment

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

For consistency with other shrink-0 usages in this component, consider changing flex-shrink-0 to shrink-0 here as well.

Copilot uses AI. Check for mistakes.
@Aliothmoon Aliothmoon merged commit 763eebd into MaaEnd:main Feb 18, 2026
9 checks passed
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.

3 participants