feat: change style optimization

This commit is contained in:
2026-08-10 21:16:03 +08:00
parent 00867ff960
commit a77592dec6
2 changed files with 33 additions and 7 deletions
@@ -83,13 +83,37 @@
} }
.divisionList { .divisionList {
display: inline-flex;
flex-wrap: wrap;
gap: 8px 12px;
}
.coverWrapper {
display: flex; display: flex;
flex-direction: column; justify-content: center;
gap: 6px; align-items: center;
background: #f5f5f5;
border-radius: 8px;
padding: 16px;
:global(.ant-image) {
max-width: 100%;
}
} }
.divisionItem { .divisionItem {
display: inline-flex;
align-items: center;
font-size: 13px; font-size: 13px;
color: rgba(0, 0, 0, 0.65); color: rgba(0, 0, 0, 0.65);
padding: 4px 12px;
background: #f5f5f5;
border-radius: 4px;
transition: all 0.2s ease;
&:hover {
color: #1677ff;
background: #e6f4ff;
}
} }
} }
@@ -270,11 +270,13 @@ export default defineComponent({
{/* ===== 封面 ===== */} {/* ===== 封面 ===== */}
<div class={styles.section}> <div class={styles.section}>
<div class={styles.sectionTitle}></div> <div class={styles.sectionTitle}></div>
<Image <div class={styles.coverWrapper}>
style={{ maxHeight: '380px' }} <Image
src={detail.value.img || defaultCover} style={{ maxHeight: '380px' }}
fallback={defaultCover} src={detail.value.img || defaultCover}
/> fallback={defaultCover}
/>
</div>
</div> </div>
{/* ===== 赛事公告 ===== */} {/* ===== 赛事公告 ===== */}