Skip to content

Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.

2.9 KB
Raw Blame
@import (reference) '@/components/css/settings-table.less';

.user-management {
  width: 100%;
  min-width: 0;

  &__tools, &__actions, &__pager {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  &__tools { gap: 4px; }
  &__create.t-button {
    flex-shrink: 0;
    min-height: 32px;
    padding: 0 12px;
    gap: 6px;
    border: 1px solid var(--td-component-stroke);
    border-radius: var(--app-radius-sm);
    background: var(--td-bg-color-container);
    color: var(--td-text-color-primary);
    font-size: var(--app-text-md);
    transition: background var(--app-motion-base);

    &:hover:not(:disabled) { background: var(--td-bg-color-container-hover); }
    &:focus-visible { outline: 2px solid var(--td-brand-color); outline-offset: 2px; }
    :deep(.t-icon) { color: var(--td-brand-color); }
  }
  &__search { width: 240px; max-width: 100%; }
  &__search :deep(.t-input) { border-radius: var(--app-radius-sm); }
  &__table {
    .settings-data-table();
    overflow: hidden;

    :deep(thead th) {
      background: var(--td-bg-color-secondarycontainer);
      color: var(--td-text-color-secondary);
      font-weight: 500;
    }
    :deep(.t-table tbody tr:last-child td) { border-bottom: 0; }
  }
  &__scroll { overflow-x: auto; }
  &__identity { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  &__name { font-size: var(--app-text-base); font-weight: 500; color: var(--td-text-color-primary); line-height: 22px; }
  &__email { font-size: var(--app-text-sm); line-height: 18px; color: var(--td-text-color-secondary); }
  &__name, &__email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  &__date { font-size: var(--app-text-md); color: var(--td-text-color-secondary); font-variant-numeric: tabular-nums; }
  &__self { margin-left: 6px; color: var(--td-text-color-placeholder); font-size: var(--app-text-sm); font-weight: 400; }
  &__role { width: 136px; margin-left: -8px; }
  &__role :deep(.t-input) { font-size: var(--app-text-md); }
  &__own-role { font-size: var(--app-text-md); color: var(--td-text-color-primary); }
  &__status { display: inline-flex; align-items: center; gap: 7px; font-size: var(--app-text-md); color: var(--td-text-color-secondary); }
  &__status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--td-text-color-disabled); }
  &__status.is-active &__status-dot { background: var(--td-success-color); }
  &__actions { gap: 8px; margin-left: -8px; }
  &__action { padding: 0 8px; font-size: var(--app-text-md); }
  &__pager { justify-content: flex-end; padding: 10px 16px; border-top: 1px solid var(--td-component-stroke); }
  &__count { margin-right: auto; font-size: var(--app-text-sm); color: var(--td-text-color-secondary); }
  &__page { min-width: 24px; text-align: center; font-size: var(--app-text-sm); color: var(--td-text-color-primary); }
}
@media (max-width: 860px) {
  .user-management__search { flex: 1; min-width: 180px; }
}