Skip to content

ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.

2.0 KB
Raw Blame
// ============================================
// DATABASE EXPLORER — PROCESSES PANEL
// Live processlist / pg_stat_activity view with kill action.
// ============================================

.dbp {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    padding: $space-3;

    // Rides the view-picker line next to the search box, so it must not wrap:
    // on a narrow workspace the label broke across two lines and dragged the
    // whole chrome row taller than the icons beside it.
    .dbp-auto {
        display: inline-flex;
        align-items: center;
        gap: $space-2;
        flex-shrink: 0;
        white-space: nowrap;
        color: $text-secondary;
        font-size: $text-xs;
        cursor: pointer;
        user-select: none;

        input { accent-color: $primary-color; }
    }

    .dbp-error {
        margin: 0 0 $space-3;
        padding: $space-2 $space-3;
        background: $danger-bg;
        border: 1px solid $danger-border;
        border-radius: $radius-control;
        color: $danger;
        font-size: $text-xs;
    }

    .dbp-empty {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .dbp-state {
        display: inline-block;
        padding: 1px $space-2;
        background: $bg-tertiary;
        border-radius: $radius-badge;
        color: $text-secondary;
        font-size: $text-xs;
    }

    // The cell used to inherit `white-space: nowrap` from the hand-rolled
    // table; the shared table does not set it, and without it a long statement
    // wraps to six lines instead of truncating.
    .dbp-query {
        max-width: 480px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-family: $font-family-mono;
        font-size: $text-xs;
    }

    .dbp-idle {
        color: $text-muted;
        font-style: italic;
    }

    .dbp-actions { text-align: right; }
}