refactor(ui): update pokemon detail grid layout and section title
Apply single-column stack layout to detail grids Shorten the related items section title for conciseness
This commit is contained in:
@@ -913,6 +913,10 @@ button:disabled,
|
|||||||
gap: 16px;
|
gap: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.detail-grid--stack {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
}
|
||||||
|
|
||||||
.habitat-detail-stack {
|
.habitat-detail-stack {
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 16px;
|
gap: 16px;
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ onMounted(async () => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="detail-grid" aria-hidden="true">
|
<div class="detail-grid detail-grid--stack" aria-hidden="true">
|
||||||
<section class="detail-section skeleton-detail-section">
|
<section class="detail-section skeleton-detail-section">
|
||||||
<div class="detail-section__header">
|
<div class="detail-section__header">
|
||||||
<Skeleton width="56px" height="24px" />
|
<Skeleton width="56px" height="24px" />
|
||||||
@@ -174,7 +174,7 @@ onMounted(async () => {
|
|||||||
</template>
|
</template>
|
||||||
</PageHeader>
|
</PageHeader>
|
||||||
|
|
||||||
<div class="detail-grid">
|
<div class="detail-grid detail-grid--stack">
|
||||||
<DetailSection title="特长">
|
<DetailSection title="特长">
|
||||||
<EntityChips :items="pokemon.skills" />
|
<EntityChips :items="pokemon.skills" />
|
||||||
</DetailSection>
|
</DetailSection>
|
||||||
@@ -192,7 +192,7 @@ onMounted(async () => {
|
|||||||
<EntityChips :items="pokemon.favorite_things" />
|
<EntityChips :items="pokemon.favorite_things" />
|
||||||
</DetailSection>
|
</DetailSection>
|
||||||
|
|
||||||
<DetailSection title="喜欢的东西关联物品">
|
<DetailSection title="关联物品">
|
||||||
<template v-if="pokemon.favoriteThingItems.length">
|
<template v-if="pokemon.favoriteThingItems.length">
|
||||||
<Tabs
|
<Tabs
|
||||||
v-if="itemCategoryTabs.length"
|
v-if="itemCategoryTabs.length"
|
||||||
|
|||||||
Reference in New Issue
Block a user