feat: 为百家乐表格添加动态样式类,并调整了标签文本的字体大小和显示方式。

This commit is contained in:
li 2026-01-19 12:42:33 +08:00
parent 2b2247327b
commit 75e884326d

View File

@ -1,5 +1,5 @@
<template> <template>
<div class="baccarat"> <div class="baccarat" :class="Type">
<!-- 第一行: | 闲对 | 庄对 | --> <!-- 第一行: | 闲对 | 庄对 | -->
<div class="list top"> <div class="list top">
<!-- --> <!-- -->
@ -268,6 +268,18 @@ export default {
box-sizing: border-box; box-sizing: border-box;
font-family: "PingFang SC", "Microsoft YaHei", sans-serif; font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
&.yn {
.list .item .text {
.label {
font-size: 10px;
transform: scale(0.9); /* Further reduce visual size if needed */
}
.label-large {
font-size: 20px;
}
}
}
.list { .list {
display: flex; display: flex;
gap: 8px; gap: 8px;
@ -290,7 +302,6 @@ export default {
.item { .item {
position: relative; position: relative;
border-radius: 8px; border-radius: 8px;
// Removed border and box-shadow, now handled by .grid-item
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
@ -316,14 +327,16 @@ export default {
pointer-events: none; pointer-events: none;
.label { .label {
font-size: 16px; font-size: 14px;
font-weight: 600; font-weight: 600;
margin-bottom: 2px; margin-bottom: 2px;
white-space: nowrap;
} }
.label-large { .label-large {
font-size: 24px; /* Reduced from 32px */ font-size: 30px;
font-weight: 800; font-weight: 800;
margin-bottom: 2px; /* Reduced margin */ margin-bottom: 2px;
white-space: nowrap;
} }
.odds { .odds {
@ -353,7 +366,6 @@ export default {
z-index: 3; z-index: 3;
white-space: nowrap; white-space: nowrap;
pointer-events: none; pointer-events: none;
// Removed background, padding, border-radius, border
.coin-icon { .coin-icon {
width: 14px; width: 14px;