为掼蛋队伍计分行新增 .guandan-teams 包裹以修复移动端样式#9
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
此 PR 通过在掼蛋队伍计分区域新增 .guandan-teams 容器,修复移动端媒体查询中依赖该容器的网格/隐藏样式无法生效的问题,从而让小屏端布局按既有 CSS 规则一致工作。
Changes:
- 在掼蛋记分板中新增
<div class="guandan-teams">包裹队伍行列表 - 保持
v-for="team in guandanTeams"仍绑定在.guandan-team-row上,避免改变渲染行为
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| <strong>{{team.name}}</strong> | ||
| <span>{{team.members}}</span> | ||
| <div class="guandan-teams"> | ||
| <div class="guandan-team-row" v-for="team in guandanTeams" :class="{active: team.score > 0}"> |
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.
Motivation
static/css/style.css的两处(@media (max-width: 768px)与@media (max-width: 480px))都针对.guandan-teams设定了网格和隐藏规则,但模板中缺少该容器导致样式未生效。v-for渲染逻辑不变。Description
static/index.html的掼蛋计分板处将多处.guandan-team-row包裹进新增的容器<div class="guandan-teams">。v-for="team in guandanTeams"仍然在每个.guandan-team-row元素上,保证数据渲染行为不变。static/css/style.css,并确认两处移动端媒体查询中关于.guandan-teams的规则在文件中一致存在。Testing
git diff --check检查代码风格/冲突,结果通过。rg -n "guandan-teams|guandan-team-row" static/index.html static/css/style.css验证模板与样式定位正确,结果显示新增容器和两处媒体查询均已匹配。Codex Task