fix:修复桌面端宽度不足时Mirror酱和左边下载按钮堆叠的问题#18
Merged
Aliothmoon merged 1 commit intoMaaEnd:mainfrom Feb 18, 2026
Merged
Conversation
There was a problem hiding this comment.
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"> | ||
| {/* 主下载按钮 - 自动检测系统 */} |
There was a problem hiding this comment.
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).
|
|
||
| {/* 第二行: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"> |
There was a problem hiding this comment.
For consistency with other shrink-0 usages in this component, consider changing flex-shrink-0 to shrink-0 here as well.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
宽度不足时会自动换行为如下效果

Summary by Sourcery
Bug Fixes:
Original summary in English
Summary by Sourcery
Bug Fixes: