fix(web): 穩定 P2-105 行動版顯示
All checks were successful
Code Review / ai-code-review (push) Successful in 13s
CD Pipeline / tests (push) Successful in 1m26s
CD Pipeline / build-and-deploy (push) Successful in 4m37s
CD Pipeline / post-deploy-checks (push) Successful in 2m35s

This commit is contained in:
Your Name
2026-06-13 07:54:06 +08:00
parent c68d03030b
commit 77867357d5
4 changed files with 63 additions and 0 deletions

View File

@@ -4668,6 +4668,7 @@
"captureRequired": "result capture required: {value}",
"ownerReview": "owner review: {value}",
"verifier": "post-write verifier: {value}",
"verifierRequired": "post-write verifier: {value}",
"criticRuntime": "critic runtime: {value}",
"reviewerRuntime": "reviewer runtime: {value}",
"captureRuntime": "capture runtime: {value}",
@@ -4697,11 +4698,24 @@
"ready_for_owner_review": "待 owner 審查",
"blocked_by_policy": "政策阻擋"
},
"scoreStatuses": {
"ready_for_owner_review": "待 owner 審查",
"blocked_by_policy": "政策阻擋"
},
"captureStatuses": {
"ready": "可審查",
"needs_owner_review": "需 owner",
"blocked_by_policy": "政策阻擋"
},
"gateStatuses": {
"ready": "可審查",
"needs_owner_review": "需 owner",
"blocked_by_policy": "政策阻擋"
},
"routeStatuses": {
"ready_for_owner_review": "待 owner 審查",
"blocked_by_policy": "政策阻擋"
},
"riskTiers": {
"low": "低風險",
"medium": "中風險",

View File

@@ -4668,6 +4668,7 @@
"captureRequired": "result capture required: {value}",
"ownerReview": "owner review: {value}",
"verifier": "post-write verifier: {value}",
"verifierRequired": "post-write verifier: {value}",
"criticRuntime": "critic runtime: {value}",
"reviewerRuntime": "reviewer runtime: {value}",
"captureRuntime": "capture runtime: {value}",
@@ -4697,11 +4698,24 @@
"ready_for_owner_review": "待 owner 審查",
"blocked_by_policy": "政策阻擋"
},
"scoreStatuses": {
"ready_for_owner_review": "待 owner 審查",
"blocked_by_policy": "政策阻擋"
},
"captureStatuses": {
"ready": "可審查",
"needs_owner_review": "需 owner",
"blocked_by_policy": "政策阻擋"
},
"gateStatuses": {
"ready": "可審查",
"needs_owner_review": "需 owner",
"blocked_by_policy": "政策阻擋"
},
"routeStatuses": {
"ready_for_owner_review": "待 owner 審查",
"blocked_by_policy": "政策阻擋"
},
"riskTiers": {
"low": "低風險",
"medium": "中風險",

View File

@@ -6996,6 +6996,11 @@ export function AutomationInventoryTab() {
min-width: 0;
}
.automation-inventory-tab-root {
max-width: 100%;
overflow-x: hidden;
}
.automation-inventory-tab-root span,
.automation-inventory-tab-root div {
overflow-wrap: anywhere;
@@ -7065,6 +7070,14 @@ export function AutomationInventoryTab() {
.automation-inventory-task-grid {
grid-template-columns: 1fr !important;
}
.automation-inventory-live-read-card-grid > *,
.automation-inventory-live-read-kpi-grid > *,
.automation-inventory-service-health-notification-rule-grid > *,
.automation-inventory-service-health-target-grid > * {
min-width: 0 !important;
max-width: 100% !important;
}
}
`}</style>
</div>

View File

@@ -136,6 +136,7 @@ export function PageTabs({ tabs, defaultTab, syncWithUrl = true }: PageTabsProps
<>
{/* Tab Bar */}
<div
className="page-tabs-bar"
style={{
height: 36,
display: 'flex',
@@ -155,6 +156,7 @@ export function PageTabs({ tabs, defaultTab, syncWithUrl = true }: PageTabsProps
<button
key={tab.id}
data-tab-id={tab.id}
className="page-tabs-button"
onClick={() => switchTab(tab.id)}
style={{
padding: '0 14px',
@@ -195,6 +197,26 @@ export function PageTabs({ tabs, defaultTab, syncWithUrl = true }: PageTabsProps
)
})}
</div>
<style jsx global>{`
@media (max-width: 640px) {
.page-tabs-bar {
height: auto !important;
min-height: 36px;
flex-wrap: wrap;
overflow-x: hidden !important;
padding: 0 10px !important;
}
.page-tabs-button {
flex: 1 1 auto;
min-width: min(100%, 86px);
justify-content: center;
padding: 0 8px !important;
white-space: normal;
overflow-wrap: anywhere;
}
}
`}</style>
{/* Tab 內容 */}
<Suspense fallback={<TabSkeleton />}>