Newer
Older
navi-1 / webclient / src / components / artifacts / styles / _panel.scss
.artifacts-panel {
  /* container queries below squeeze the tab row to the panel width —
     the tabs must never wrap into a second row */
  container-type: inline-size;

  width: var(--artifacts-width, min(600px, 42vw));
  min-width: var(--artifacts-width, min(600px, 42vw));
  max-width: var(--artifacts-width, min(600px, 42vw));
  display: flex;
  flex-direction: column;
  background: var(--gn-color-black);
  border-left: 2px solid var(--gn-border-color-muted);
  min-height: 0;
  margin-right: calc(-1 * var(--artifacts-width, min(600px, 42vw)));
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  position: relative;
  transition:
    margin-right 0.22s ease,
    opacity 0.22s ease,
    transform 0.22s ease;
}

.artifacts-panel.is-open {
  margin-right: 0;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.artifacts-panel.is-resizing {
  transition: none;
}

.artifacts-resize-handle {
  position: absolute;
  top: 0;
  left: -4px;
  bottom: 0;
  width: 8px;
  z-index: 2;
  cursor: col-resize;
  touch-action: none;
}

.artifacts-resize-handle::after {
  content: "";
  position: absolute;
  top: 0;
  left: 3px;
  width: 1px;
  height: 100%;
  background: transparent;
  transition: background 0.15s ease;
}

.artifacts-resize-handle:hover::after,
.artifacts-panel.is-resizing .artifacts-resize-handle::after {
  background: var(--gn-color-accent);
}

.artifacts-header {
  /* min-height: kit chips may wrap to a second row on a narrow panel */
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 15px;
  border-bottom: 2px solid var(--gn-border-color-muted);
}

.artifacts-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--gn-color-text-dark);
  font-size: 13px;
}

.artifacts-tabs {
  display: flex;
  align-items: center;
  flex-wrap: nowrap; /* kit chip-group wraps — the tab row must stay one line */
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.artifacts-tab {
  min-width: 0;
  white-space: nowrap;
}

/* Squeeze steps sized from the widest tab (BACKGROUNDS + icon + count) */
@container (max-width: 560px) {
  .artifacts-tab {
    padding: 4px 10px;
    font-size: 11px;
    gap: 6px;
  }

  .artifacts-tabs {
    gap: 6px;
  }
}

@container (max-width: 490px) {
  .artifacts-tab {
    padding: 3px 8px;
    font-size: 10px;
    gap: 5px;
  }
}

@container (max-width: 400px) {
  .artifacts-tab {
    padding: 2px 6px;
  }

  .artifacts-tab-count {
    padding-left: 3px;
  }
}

/* Only the docked panel runs out of room with the label still attached; on a
   phone the mobile block below has already dropped the label, so the icon is
   all that is left and dropping it too would leave a bare counter. */
@media (min-width: 981px) {
  @container (max-width: 360px) {
    .artifacts-tab i {
      display: none;
    }
  }
}

.artifacts-tab-count {
  padding-left: 4px;
  opacity: 0.72;
}

.artifacts-tab-count.has-running {
  color: var(--gn-color-success);
  opacity: 1;
}

.artifacts-list {
  max-height: calc(58px * 4);
  overflow-y: auto;
  border-bottom: 2px solid var(--gn-border-color-muted);
}