llmage/wwwroot/model_plaza.css
yumoqing be3c939955 fix: 模型广场彻底重构 — 移除TabPanel,用VBox+script切换视图
根因链:
1. TabPanel内部容器结构导致getWidgetById找不到tab content中的widget
2. urlwidget渲染后替换自身DOM,id丢失

修复:
- model_plaza.ui: 移除TabPanel,用两个VBox(按分类/按供应商)+script切换display
- plaza_cards_panel/plaza_provider_panel改为VBox容器(urlwidget作子组件),id不丢失
- CSS用#plaza_view_provider{display:none}初始隐藏供应商视图
- 切换按钮用getElementById直接操作display,不依赖bricks widget寻址
- 全链路filler确保VScrollPanel获得确定高度可滚动
2026-06-01 13:44:20 +08:00

89 lines
1.5 KiB
CSS

/* Model Plaza — 模型广场 */
/* Hide provider view initially */
#plaza_view_provider {
display: none;
}
.plaza-header {
padding: 8px 16px 4px 16px;
}
/* View switcher buttons */
.plaza-view-switcher {
gap: 8px;
padding: 8px 0 4px 0;
}
.plaza-view-btn {
border-radius: 6px !important;
transition: all 0.2s ease;
}
.plaza-view-btn.plaza-view-active {
border: 2px solid var(--sage-brand, #6366f1) !important;
}
/* Left sidebar */
.plaza-sidebar {
border-right: 1px solid var(--sage-border, #e2e8f0);
padding: 4px;
}
.plaza-nav-btn {
margin-bottom: 2px;
text-align: left;
transition: background-color 0.15s ease;
}
.plaza-nav-btn:hover {
background-color: var(--sage-hover, rgba(99, 102, 241, 0.08));
}
/* Card hover effects for model cards */
.plaza-card {
transition: transform 0.2s ease, box-shadow 0.2s ease;
cursor: pointer;
border-radius: 8px !important;
}
.plaza-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
/* Category section headers */
.plaza-section-title {
padding: 12px 0 4px 4px;
position: relative;
}
.plaza-section-title::before {
content: '';
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
width: 4px;
height: 70%;
border-radius: 2px;
background: var(--sage-brand, #6366f1);
}
/* Smooth card grid */
.plaza-grid {
gap: 12px !important;
padding: 4px 8px;
}
/* Model icon area */
.plaza-card .model-icon-row {
gap: 8px;
}
/* Description text */
.plaza-card .model-desc {
line-height: 1.5;
opacity: 0.85;
}