样式优化

This commit is contained in:
kron
2025-11-10 17:47:32 +08:00
parent cd8814189f
commit 81ab085e48
5 changed files with 15 additions and 13 deletions

View File

@@ -124,7 +124,7 @@ const normalRounds = computed(
.container {
width: 100%;
overflow: hidden;
margin-top: -40px;
margin-top: -100rpx;
}
.container > view:nth-child(2) {
position: relative;
@@ -166,7 +166,7 @@ const normalRounds = computed(
background: linear-gradient(270deg, #0006 0%, #6a1212 100%);
}
.players > view > view {
min-height: 25px;
min-height: 52rpx;
width: calc(100% - 40px);
padding: 2px 20px;
margin-bottom: 5px;
@@ -175,7 +175,7 @@ const normalRounds = computed(
align-items: center;
}
.players > view > view > image:first-child {
width: 72px;
width: 135rpx;
height: 20px;
}
.players > view > view > view:last-child {
@@ -185,6 +185,7 @@ const normalRounds = computed(
font-size: 16px;
color: #fed847;
margin-right: 5px;
font-weight: 500;
}
.guide-row {
display: flex;
@@ -196,6 +197,6 @@ const normalRounds = computed(
position: relative;
}
.guide-row > image {
width: 18%;
width: 140rpx;
}
</style>

View File

@@ -174,6 +174,7 @@ onBeforeUnmount(() => {
display: flex;
align-items: center;
justify-content: center;
font-weight: 500;
}
.container > button:last-child {
width: 36px;

View File

@@ -89,9 +89,9 @@ onBeforeUnmount(() => {
align-items: center;
}
.container > image {
width: 360rpx;
width: 380rpx;
height: 80rpx;
transform: translateY(20rpx);
transform: translateY(18rpx);
}
.container > view:last-child {
width: 100%;
@@ -113,7 +113,7 @@ onBeforeUnmount(() => {
font-size: 18rpx;
color: #fff;
position: absolute;
top: 0;
top: -0.5rpx;
left: 50%;
transform: translateX(-50%);
}

View File

@@ -65,7 +65,7 @@ watch(
class="flag"
:style="{
[isRed ? 'left' : 'right']: '10rpx',
top: currentTeam ? '-44rpx' : '-30rpx',
top: currentTeam ? '-36rpx' : '-24rpx',
}"
/>
<view
@@ -76,7 +76,7 @@ watch(
width: (isFirst(item.id) ? 80 : 60) + 'rpx',
height: (isFirst(item.id) ? 80 : 60) + 'rpx',
zIndex: team.length - ((players[item.id] || {}).sort || 0),
border: isFirst(item.id) ? '3rpx solid' : '2rpx solid',
border: isFirst(item.id) ? '3.5rpx solid' : '2rpx solid',
borderColor: isRed ? '#ff6060' : '#5fadff',
top: isFirst(item.id) ? '0rpx' : '12rpx',
[isRed ? 'left' : 'right']: getPos(item.id) + 'rpx',
@@ -130,9 +130,9 @@ watch(
}
.player > text {
position: absolute;
font-size: 16rpx;
font-size: 15rpx;
text-align: center;
width: 80rpx;
width: 76rpx;
left: 0;
bottom: 0;
color: #fff;