fix(ui): prevent text overflow in appearance list and adjust layout
Add text truncation to appearance names to prevent layout breakage. Use clamp() for appearance list grid columns and update habitat detail spacing.
This commit is contained in:
@@ -766,7 +766,7 @@ button:disabled,
|
|||||||
|
|
||||||
.skeleton-appearance-row {
|
.skeleton-appearance-row {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: max-content minmax(0, 1fr);
|
grid-template-columns: clamp(140px, 20%, 220px) minmax(0, 1fr);
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -913,6 +913,11 @@ button:disabled,
|
|||||||
gap: 16px;
|
gap: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.habitat-detail-stack {
|
||||||
|
display: grid;
|
||||||
|
gap: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
.detail-section {
|
.detail-section {
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
@@ -988,12 +993,15 @@ button:disabled,
|
|||||||
|
|
||||||
.appearance-list li {
|
.appearance-list li {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: max-content minmax(0, 1fr);
|
grid-template-columns: clamp(140px, 20%, 220px) minmax(0, 1fr);
|
||||||
align-items: start;
|
align-items: start;
|
||||||
justify-content: stretch;
|
justify-content: stretch;
|
||||||
}
|
}
|
||||||
|
|
||||||
.appearance-name {
|
.appearance-name {
|
||||||
|
min-width: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ onMounted(async () => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="detail-grid" aria-hidden="true">
|
<div class="habitat-detail-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="92px" height="24px" />
|
<Skeleton width="92px" height="24px" />
|
||||||
@@ -138,7 +138,7 @@ onMounted(async () => {
|
|||||||
</template>
|
</template>
|
||||||
</PageHeader>
|
</PageHeader>
|
||||||
|
|
||||||
<div class="detail-grid">
|
<div class="habitat-detail-stack">
|
||||||
<DetailSection title="配方列表">
|
<DetailSection title="配方列表">
|
||||||
<EntityChips :items="habitat.recipe" />
|
<EntityChips :items="habitat.recipe" />
|
||||||
</DetailSection>
|
</DetailSection>
|
||||||
|
|||||||
Reference in New Issue
Block a user