Files
knowledge-governance/web/src/qaDepartmentStatistics.css
T
姚章浩 1c065846f6
build / build (push) Successful in 1m10s
fix(qaops): 按人视图同步直接展示部门及列宽
按人和按区域均直接显示部门名称与完整路径悬停,统一列宽;移除不再使用的折叠摘要、模式开关和样式。统计、兼属与分页不变。

验证:按人部门直显与统一列宽回归先红后绿,14项相关测试与类型检查通过。完整门禁、候选及上线验收待执行。
2026-10-24 14:33:44 +08:00

406 lines
7.6 KiB
CSS

.qa-analysis-switcher {
display: inline-flex;
gap: 4px;
padding: 4px;
margin: 0 0 8px;
border: 1px solid #e5ebf2;
border-radius: 6px;
background: #f1f5f9;
}
.qa-analysis-switcher button {
border: 0;
background: transparent;
color: #64748b;
padding: 7px 18px;
border-radius: 4px;
}
.qa-analysis-switcher button[aria-pressed='true'] {
background: #fff;
color: #2563eb;
box-shadow: 0 1px 3px #33415514;
font-weight: 600;
}
.qa-analysis-switcher button:focus-visible {
outline: 2px solid #3b82f6;
outline-offset: 1px;
}
.qa-people-analysis {
min-width: 0;
}
.qa-people-analysis-heading {
display: flex;
gap: 12px;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
margin: 0 0 10px;
}
.qa-people-analysis-heading h4 {
margin: 0;
font-size: 15px;
}
.qa-people-analysis-heading label {
display: flex;
gap: 8px;
align-items: center;
font-size: 13px;
}
.qa-people-analysis-heading select {
max-width: 100%;
min-height: 32px;
}
.qa-people-analysis-heading > span {
color: #718096;
font-size: 12px;
}
.qa-people-ranking-table {
min-width: 1000px;
}
.qa-people-ranking-table .qa-people-name-cell,
.qa-people-ranking-table .qa-people-region-cell,
.qa-people-ranking-table .qa-people-paths {
text-align: left;
white-space: normal;
overflow-wrap: anywhere;
line-height: 1.6;
}
.qa-people-multi {
display: inline-block;
color: #64748b;
border: 1px solid #cbd5e1;
border-radius: 4px;
padding: 0 5px;
margin-left: 6px;
font-size: 11px;
font-weight: 400;
}
.qa-people-paths .qa-people-departments-inline {
list-style: none;
padding: 0;
margin: 0;
}
.qa-people-departments-inline li + li {
margin-top: 4px;
}
.qa-people-question-count {
font-weight: 600;
}
.qa-people-pagination {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
align-items: center;
gap: 8px;
padding: 12px 0 0;
color: #64748b;
font-size: 12px;
}
.qa-people-pagination > div {
display: flex;
gap: 10px;
align-items: center;
}
.qa-people-pagination select {
min-height: 30px;
}
@media (max-width: 680px) {
.qa-people-analysis-heading {
align-items: flex-start;
}
.qa-people-analysis-heading label {
flex-wrap: wrap;
}
.qa-people-analysis-heading select {
max-width: 280px;
}
.qa-people-pagination > div {
width: 100%;
justify-content: space-between;
}
.qa-analysis-switcher button {
padding: 7px 15px;
}
}
.qa-regional-statistics {
min-width: 0;
color: #334155;
}
.qa-department-toolbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin: 0 0 14px;
}
.qa-department-toolbar h3 {
margin: 0;
font-size: 18px;
}
.qa-department-actions,
.qa-department-filters {
display: flex;
align-items: end;
flex-wrap: wrap;
gap: 10px;
}
.qa-department-filters {
padding: 10px 0;
}
.qa-department-filters label {
display: flex;
flex-direction: column;
gap: 4px;
font-size: 12px;
color: #64748b;
}
.qa-department-filters input,
.qa-department-filters select {
min-height: 34px;
max-width: 240px;
}
.qa-department-meta,
.qa-department-note {
font-size: 12px;
color: #718096;
margin: 8px 0;
line-height: 1.6;
}
.qa-department-table-scroll {
max-height: calc(100vh - 340px);
min-height: 280px;
overflow: auto;
border: 1px solid #e5ebf2;
border-radius: 5px;
min-width: 0;
max-width: 100%;
background: #fff;
}
.qa-department-table {
width: 100%;
min-width: 900px;
border-collapse: collapse;
table-layout: fixed;
font-size: 14px;
}
.qa-department-name-column {
width: 43%;
}
.qa-department-time-column {
width: 20%;
}
.qa-department-table th,
.qa-department-table td {
padding: 13px 12px;
border-right: 1px solid #e8edf4;
border-bottom: 1px solid #e8edf4;
text-align: center;
vertical-align: middle;
white-space: nowrap;
font-variant-numeric: tabular-nums;
}
.qa-department-table th {
position: sticky;
top: 0;
z-index: 2;
background: #f8fafc;
font-weight: 600;
color: #60748c;
}
.qa-department-table td:first-child,
.qa-department-table th:first-child {
text-align: left;
}
.qa-department-table tbody tr:hover {
background: #f7faff;
}
.qa-department-name {
display: flex;
align-items: center;
gap: 7px;
min-width: 0;
}
.qa-department-name input[type='checkbox'] {
flex: none;
width: 15px;
height: 15px;
margin: 0;
}
.qa-department-expand,
.qa-department-expand-space {
display: inline-flex;
flex: none;
align-items: center;
justify-content: center;
width: 20px;
min-width: 20px;
height: 24px;
}
.qa-department-expand {
padding: 0;
border: 0;
background: transparent;
color: #536c88;
font-size: 20px;
cursor: pointer;
}
.qa-department-expand:focus-visible {
outline: 2px solid #3b82f6;
outline-offset: 2px;
}
.qa-department-label {
min-width: 0;
white-space: normal;
overflow-wrap: anywhere;
line-height: 1.5;
}
.qa-department-region {
display: block;
font-size: 11px;
line-height: 1.5;
color: #8190a4;
margin-top: 2px;
}
.qa-department-ratio {
font-weight: 650;
}
.qa-department-ratio[data-ratio='unknown'] {
font-weight: 400;
color: #8190a4;
}
.qa-department-person {
display: flex;
align-items: baseline;
flex-wrap: wrap;
gap: 7px;
text-align: left;
white-space: normal;
line-height: 1.6;
}
.qa-person-kind {
flex: none;
padding: 0 4px;
border-radius: 3px;
background: #f1f5f9;
color: #64748b;
font-size: 11px;
}
.qa-person-name {
overflow-wrap: anywhere;
}
.qa-person-memberships {
max-width: 100%;
color: #64748b;
font-size: 12px;
}
.qa-person-memberships summary {
display: inline-block;
padding: 0 7px;
border: 1px solid #cbd5e1;
border-radius: 4px;
cursor: pointer;
list-style: none;
}
.qa-person-memberships summary::-webkit-details-marker {
display: none;
}
.qa-person-memberships summary:focus-visible {
outline: 2px solid #3b82f6;
outline-offset: 2px;
}
.qa-person-memberships[open] {
flex-basis: 100%;
}
.qa-person-memberships ul {
margin: 6px 0 0;
padding-left: 20px;
white-space: normal;
overflow-wrap: anywhere;
}
.qa-department-person-row > td:not(:first-child) {
color: #64748b;
}
.qa-department-editor {
min-width: 0;
}
@media (max-width: 680px) {
.qa-department-toolbar {
align-items: flex-start;
}
.qa-department-actions {
justify-content: flex-end;
}
.qa-department-actions button {
font-size: 12px;
padding: 6px 8px;
}
.qa-department-table-scroll {
max-height: 65vh;
}
.qa-department-filters input {
max-width: 180px;
}
.qa-department-filters {
gap: 8px;
}
.qa-department-filters label {
max-width: 100%;
}
}
.qa-department-binding {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px;
border-left: 1px solid #e5ebf2;
padding-left: 12px;
}
.qa-department-binding > span {
color: #64748b;
font-size: 12px;
}
.qa-region-settings-panel {
position: fixed;
inset: 0 0 0 auto;
z-index: 80;
display: flex;
flex-direction: column;
width: min(560px, 100vw);
box-sizing: border-box;
border-left: 1px solid #d8e1eb;
background: #fff;
color: #334155;
box-shadow: -10px 0 30px #33415514;
}
.qa-region-settings-panel[hidden] {
display: none;
}
.qa-region-settings-panel > header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 18px 20px;
border-bottom: 1px solid #e5ebf2;
gap: 12px;
}
.qa-region-settings-panel > header h3 {
margin: 0;
font-size: 18px;
}
.qa-region-settings-content {
overflow: auto;
min-height: 0;
padding: 20px;
}
@media (max-width: 680px) {
.qa-department-binding {
border-left: 0;
padding-left: 0;
flex-basis: 100%;
}
.qa-region-settings-content {
padding: 16px;
}
}