feat: restructure G01 information hierarchy

This commit is contained in:
rain
2026-07-13 09:54:39 +08:00
parent ab8f9384c3
commit 79c195cb0d
2 changed files with 88 additions and 86 deletions
+18 -16
View File
@@ -8,8 +8,14 @@
</view>
</view>
<view class="card-copy">
<text class="card-name">{{ genealogy.name }}</text>
<view class="card-main">
<view class="card-title-row">
<text class="card-name">{{ genealogy.name }}</text>
<view class="card-side">
<text class="card-role">{{ role }}</text>
<image class="card-chevron" src="/static/assets/icons/common/chevron-right-v2.png" mode="aspectFit" />
</view>
</view>
<view class="card-detail-row">
<view class="card-metas">
<view class="card-meta-item">
@@ -26,11 +32,6 @@
</view>
</view>
</view>
<view class="card-side">
<text class="card-role">{{ role }}</text>
<image class="card-chevron" src="/static/assets/icons/common/chevron-right-v2.png" mode="aspectFit" />
</view>
</view>
</template>
@@ -47,9 +48,9 @@ defineEmits(['select'])
.genealogy-card {
position: relative;
display: flex;
min-height: 160rpx;
min-height: 156rpx;
align-items: center;
padding: 20rpx 24rpx;
padding: 18rpx 24rpx;
box-sizing: border-box;
background: transparent;
}
@@ -72,8 +73,8 @@ defineEmits(['select'])
position: relative;
z-index: 1;
display: flex;
width: 76rpx;
height: 118rpx;
width: 72rpx;
height: 112rpx;
flex: 0 0 auto;
align-items: center;
justify-content: center;
@@ -87,7 +88,7 @@ defineEmits(['select'])
.genealogy-card:not(.genealogy-card--current) .surname-seal-frame { opacity: .32; }
.genealogy-card:not(.genealogy-card--current) .seal-title { color: $ink-muted; }
.card-copy {
.card-main {
position: relative;
z-index: 1;
display: flex;
@@ -103,6 +104,7 @@ defineEmits(['select'])
white-space: nowrap;
}
.card-title-row { display: flex; min-width: 0; align-items: center; justify-content: space-between; }
.card-name { color: $ink; font-family: 'STKaiti', 'KaiTi', serif; font-size: 37rpx; font-weight: 700; }
.card-detail-row { display: flex; min-width: 0; align-items: center; justify-content: space-between; margin-top: 12rpx; }
.card-metas { display: flex; min-width: 0; align-items: center; }
@@ -115,12 +117,12 @@ defineEmits(['select'])
position: relative;
z-index: 1;
display: flex;
width: 124rpx;
min-width: 0;
flex: 0 0 auto;
flex-direction: row;
align-items: center;
justify-content: flex-end;
margin-left: 10rpx;
margin-left: 20rpx;
}
.card-role { color: $ink-muted; font-size: 24rpx; white-space: nowrap; }
@@ -128,11 +130,11 @@ defineEmits(['select'])
@media screen and (max-width: 340px) {
.genealogy-card { min-height: 148rpx; padding-right: 18rpx; padding-left: 18rpx; }
.surname-seal { width: 68rpx; height: 106rpx; margin-right: 16rpx; }
.surname-seal { width: 66rpx; height: 100rpx; margin-right: 16rpx; }
.card-name { font-size: 32rpx; }
.card-meta { font-size: 20rpx; }
.card-updated { display: none; }
.card-side { width: 92rpx; margin-left: 8rpx; }
.card-side { margin-left: 12rpx; }
.card-chevron { width: 28rpx; height: 28rpx; margin-left: 8rpx; }
}
</style>