| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694 |
- // 智能工作台通用页面样式(从源项目 AI 页面壳/搜索面板/表格工具栏移植,类名改为 wb- 前缀)
- :root {
- --wb-bg-page: #f4f6fa;
- --wb-bg-card: #ffffff;
- --wb-border: #e5e9f2;
- --wb-text: #1f2937;
- --wb-text-2: #64748b;
- --wb-text-muted: #94a3b8;
- --wb-primary: #2a50ec;
- --wb-primary-soft: #e8eefc;
- --wb-success: #16a34a;
- --wb-warning: #d97706;
- --wb-error: #dc2626;
- --wb-radius: 8px;
- // 源项目 AI 页面样式使用的 token 别名(移植 chat/markdown 样式时保持原变量名)
- --app-accent-soft: #e8eefc;
- --app-accent-strong: #2a50ec;
- --app-border-color: #e5e9f2;
- --app-elevated-bg: #ffffff;
- --app-elevated-soft-bg: #f8fafc;
- --app-radius-base: 8px;
- --app-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
- --app-surface-bg: #ffffff;
- --app-surface-border: #e5e9f2;
- --app-text-muted: #94a3b8;
- --app-text-title: #1f2937;
- }
- .wb-page {
- display: flex;
- flex: 1 1 auto;
- flex-direction: column;
- gap: 12px;
- min-width: 0;
- min-height: 0;
- height: 100%;
- padding: 12px;
- overflow: auto;
- background: var(--wb-bg-page);
- }
- .wb-card {
- background: var(--wb-bg-card);
- border: 1px solid var(--wb-border);
- border-radius: var(--wb-radius);
- .ant-card-head {
- min-height: 46px;
- padding: 0 16px;
- border-bottom: 1px solid var(--wb-border);
- }
- .ant-card-head-title {
- padding: 12px 0;
- color: var(--wb-text);
- font-size: 15px;
- font-weight: 600;
- }
- .ant-card-body {
- padding: 16px;
- }
- }
- .wb-search-card {
- .ant-card-body {
- padding: 16px;
- }
- }
- .wb-table-card {
- display: flex;
- flex: 1 1 auto;
- flex-direction: column;
- min-height: 0;
- .ant-card-body {
- display: flex;
- flex: 1 1 auto;
- flex-direction: column;
- min-height: 0;
- padding: 12px 16px 16px;
- }
- }
- .wb-toolbar {
- display: flex;
- align-items: center;
- justify-content: space-between;
- flex-wrap: wrap;
- gap: 10px;
- margin-bottom: 12px;
- }
- .wb-toolbar__title {
- color: var(--wb-text);
- font-size: 15px;
- font-weight: 600;
- }
- .wb-toolbar__actions {
- display: flex;
- align-items: center;
- flex-wrap: nowrap;
- gap: 8px;
- margin-left: auto;
- overflow-x: auto;
- white-space: nowrap;
- &::-webkit-scrollbar {
- height: 0;
- }
- }
- .wb-form-grid {
- display: grid;
- grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
- gap: 0 16px;
- .ant-form-item {
- margin-bottom: 14px;
- }
- }
- .wb-form-actions {
- display: flex;
- justify-content: flex-end;
- gap: 8px;
- }
- .wb-table {
- flex: 1 1 auto;
- min-height: 0;
- .ant-table-cell {
- font-size: 13px;
- }
- }
- .wb-pagination {
- display: flex;
- justify-content: flex-end;
- margin-top: 12px;
- }
- .wb-mono,
- .wb-pre {
- font-family: 'JetBrains Mono', Consolas, 'Courier New', monospace;
- font-size: 12px;
- line-height: 1.6;
- white-space: pre-wrap;
- word-break: break-all;
- }
- .wb-pre {
- max-height: 360px;
- margin: 0;
- padding: 10px 12px;
- overflow: auto;
- background: #f8fafc;
- border: 1px solid var(--wb-border);
- border-radius: 6px;
- }
- .wb-muted {
- color: var(--wb-text-muted);
- }
- .wb-tip {
- max-width: 320px;
- line-height: 1.6;
- }
- .wb-label-tip {
- display: inline-flex;
- align-items: center;
- gap: 4px;
- white-space: nowrap;
- }
- .wb-config-card {
- max-width: 980px;
- }
- .wb-detail-label {
- color: var(--wb-text-2);
- }
- .wb-empty {
- padding: 40px 0;
- }
- .wb-section-title {
- margin: 0 0 12px;
- color: var(--wb-text);
- font-size: 15px;
- font-weight: 600;
- }
- .wb-divider {
- margin: 8px 0 16px;
- }
- .wb-status-tag {
- margin: 0;
- }
- .wb-link-btn {
- padding: 0;
- }
- .wb-truncate {
- max-width: 320px;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- // 自定义头部页面的查询条件收起开关:与「筛选条件」卡片一致,点击标题展开 / 收起
- .wb-filter-toggle {
- display: inline-flex;
- align-items: center;
- gap: 6px;
- cursor: pointer;
- user-select: none;
- }
- .wb-filter-toggle__arrow {
- flex: 0 0 auto;
- color: #98a2b3;
- font-size: 14px;
- }
- // 工具与集成 / 审计与观测统一管理页视觉:紧凑筛选 + 列表卡片 + 内容滚动
- .wb-manage-page {
- gap: 8px;
- padding: 8px 10px;
- background: #f4f6fa;
- &.wb-manage-page--fixed {
- overflow: hidden;
- }
- .wb-card {
- background: #fff;
- border: 1px solid #e7ebf3;
- border-radius: 14px;
- box-shadow: 0 1px 2px rgb(16 24 40 / 4%);
- > .ant-card-head {
- min-height: 42px;
- padding: 0 14px;
- border-bottom: 1px solid #eff2f7;
- }
- > .ant-card-head .ant-card-head-title {
- padding: 9px 0;
- overflow: visible;
- white-space: normal;
- }
- > .ant-card-body {
- padding: 14px;
- }
- }
- .wb-search-card {
- flex: 0 0 auto;
- > .ant-card-body {
- padding: 0;
- }
- > .ant-card-head .ant-card-extra {
- display: flex;
- align-items: center;
- gap: 8px;
- }
- .ant-card-extra .ant-btn {
- height: 32px;
- padding: 0 14px;
- border-radius: 8px;
- font-size: 12px;
- font-weight: 500;
- }
- }
- .wb-table-card {
- > .ant-card-head .ant-card-head-title {
- padding: 10px 0;
- }
- }
- &.wb-manage-page--fixed {
- .wb-table-card {
- flex: 1 1 auto;
- min-height: 0;
- > .ant-card-body {
- display: flex;
- flex: 1 1 auto;
- flex-direction: column;
- min-height: 0;
- padding: 0;
- overflow: hidden;
- }
- }
- }
- &.wb-manage-page--scroll {
- overflow: auto;
- > .wb-card {
- flex: 0 0 auto;
- }
- .wb-table-card {
- flex: 0 0 auto;
- }
- }
- .search-panel-toggle {
- display: flex;
- align-items: center;
- gap: 8px;
- width: 100%;
- cursor: pointer;
- user-select: none;
- h3 {
- position: relative;
- flex: 0 0 auto;
- margin: 0;
- padding-left: 11px;
- color: #111827;
- font-size: 15px;
- font-weight: 600;
- line-height: 22px;
- &::before {
- position: absolute;
- top: 4px;
- bottom: 4px;
- left: 0;
- width: 3px;
- border-radius: 2px;
- background: #2a50ec;
- content: '';
- }
- }
- }
- .search-panel-toggle__arrow {
- flex: 0 0 auto;
- color: #98a2b3;
- font-size: 14px;
- }
- .query-form {
- display: flex;
- flex-wrap: wrap;
- align-items: center;
- gap: 8px 14px;
- padding: 10px 14px 12px;
- .ant-form-item {
- display: inline-flex;
- align-items: center;
- margin: 0;
- }
- .ant-form-item-label {
- padding: 0 8px 0 0;
- > label {
- height: 32px;
- color: #5b6577;
- font-size: 12px;
- line-height: 32px;
- }
- }
- .ant-form-item-control {
- min-height: 32px;
- }
- .ant-input,
- .ant-input-affix-wrapper,
- .ant-select,
- .ant-select-selector,
- .ant-picker,
- .ant-input-number {
- height: 32px;
- border-color: #e7ebf3;
- border-radius: 8px;
- font-size: 12px;
- }
- .ant-input-affix-wrapper {
- padding: 0 10px;
- }
- .ant-input-affix-wrapper > .ant-input {
- height: 100%;
- padding: 0;
- background: transparent;
- border: 0;
- border-radius: 0;
- box-shadow: none;
- }
- .ant-select-selector {
- padding: 0 10px;
- }
- .ant-select-selection-item,
- .ant-select-selection-placeholder {
- font-size: 12px;
- line-height: 30px;
- }
- .ant-select-multiple .ant-select-selection-item {
- line-height: 22px;
- }
- .ant-picker {
- padding: 0 10px;
- }
- .ant-picker-input > input {
- font-size: 12px;
- }
- .ant-input-number {
- width: 100%;
- .ant-input-number-input {
- height: 30px;
- padding: 0 10px;
- font-size: 12px;
- }
- }
- .ant-checkbox-wrapper {
- font-size: 12px;
- }
- .ant-btn {
- height: 32px;
- padding: 0 14px;
- border-radius: 8px;
- font-size: 12px;
- font-weight: 500;
- }
- }
- .wb-toolbar {
- flex-wrap: wrap;
- gap: 12px;
- margin-bottom: 0;
- }
- .wb-table-heading {
- flex: 1 1 420px;
- min-width: 0;
- h3 {
- position: relative;
- margin: 0;
- padding-left: 11px;
- color: #111827;
- font-size: 15px;
- font-weight: 600;
- line-height: 22px;
- &::before {
- position: absolute;
- top: 4px;
- bottom: 4px;
- left: 0;
- width: 3px;
- border-radius: 2px;
- background: #2a50ec;
- content: '';
- }
- }
- p {
- margin: 4px 0 0;
- color: #98a2b3;
- font-size: 12px;
- line-height: 1.6;
- }
- }
- .wb-toolbar__actions .ant-btn {
- height: 32px;
- padding: 0 14px;
- border-radius: 8px;
- font-size: 12px;
- font-weight: 500;
- }
- .ant-btn.ant-btn-primary.ant-btn-background-ghost {
- color: #2a50ec !important;
- background: #fff !important;
- border-color: #b9c8f8;
- &:hover,
- &:focus {
- color: #1d3fd0 !important;
- background: #f5f8ff !important;
- border-color: #2a50ec;
- }
- &:disabled {
- color: #b7bfce !important;
- background: #f8fafc !important;
- border-color: #e7ebf3;
- }
- }
- .wb-table {
- .ant-table {
- font-size: 12px;
- }
- .ant-table-thead > tr > th {
- height: 40px;
- padding: 0 12px;
- color: #5b6577;
- font-size: 12px;
- font-weight: 600;
- background: #f8fafc;
- border-bottom: 1px solid #eff2f7;
- }
- .ant-table-thead > tr > th::before {
- display: none;
- }
- .ant-table-tbody > tr > td {
- height: 42px;
- padding: 0 12px;
- color: #1f2937;
- font-size: 12px;
- border-bottom: 1px solid #f4f6fa;
- }
- .ant-table-tbody > tr:hover > td {
- background: #eef4ff !important;
- }
- .ant-tag {
- margin-inline-end: 0;
- font-size: 11px;
- line-height: 20px;
- }
- .ant-btn-link {
- height: auto;
- padding: 0 2px;
- font-size: 12px;
- }
- }
- .wb-table-scroll {
- flex: 1 1 auto;
- min-height: 0;
- overflow: auto;
- }
- .wb-pagination {
- flex: 0 0 auto;
- justify-content: flex-end;
- margin-top: 0;
- padding: 8px 14px 10px;
- border-top: 1px solid #eff2f7;
- .ant-pagination {
- margin: 0;
- }
- }
- .detail-card {
- background: #fff;
- border: 1px solid #e7ebf3;
- border-radius: 12px;
- box-shadow: none;
- .ant-card-head {
- min-height: 42px;
- padding: 0 14px;
- border-bottom: 1px solid #eff2f7;
- }
- .ant-card-head-title {
- padding: 10px 0;
- font-size: 14px;
- }
- .ant-card-body {
- padding: 14px;
- }
- }
- }
- // 统一详情/编辑弹框尺寸;内容由 BasicModal 内部滚动
- .wb-ops-modal .ant-modal {
- height: auto !important;
- }
- .wb-ops-modal .ant-modal-content {
- overflow: hidden;
- border-radius: 14px;
- }
- .wb-ops-modal .ant-modal-header {
- margin: 0;
- padding: 15px 18px;
- border-bottom: 1px solid #eff2f7;
- }
- .wb-ops-modal .ant-modal-body {
- background: #fff;
- }
- .wb-ops-modal .ant-descriptions-item-label {
- white-space: nowrap;
- }
- .wb-detail-drawer .ant-drawer-header {
- padding: 14px 16px;
- border-bottom: 1px solid #eff2f7;
- }
- .wb-detail-drawer .ant-drawer-title {
- color: #111827;
- font-size: 15px;
- font-weight: 600;
- }
- .wb-detail-drawer .ant-drawer-body {
- padding: 14px;
- background: #f4f6fa;
- }
- .wb-detail-drawer .ant-drawer-footer {
- padding: 10px 16px;
- border-top: 1px solid #eff2f7;
- }
- // 表格操作列:统一按钮尺寸与图标大小,覆盖页面表格、详情弹框与抽屉内的表格
- .wb-page,
- .wb-ops-modal,
- .wb-detail-drawer,
- .memory-modal {
- .ant-table-tbody > tr > td:last-child,
- .ant-table-tbody > tr > td.ant-table-cell-fix-right {
- .ant-btn.ant-btn-link {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- height: 30px;
- min-width: 30px;
- padding: 0 8px;
- border-radius: 6px;
- font-size: 13px;
- line-height: 1;
- }
- .ant-btn.ant-btn-link:has(> .anticon:only-child) {
- width: 30px;
- padding: 0;
- }
- > .ant-btn.ant-btn-link,
- > .ant-tooltip-disabled-compatible-wrapper {
- margin: 0 3px;
- }
- .ant-btn.ant-btn-link .anticon {
- font-size: 16px;
- }
- }
- }
- // 统一工作台内容区按钮圆角:使用紧凑的 6px,不使用大圆角
- .wb-page .ant-btn,
- .chat-workbench .ant-btn {
- border-radius: 6px !important;
- }
|