Skip to content

The open-source AI receptionist for businesses. Answers every call, books the appointment and hands over to a person when needed. You own the code and the data.

4.0 KB
Raw Blame
/* Help at the foot of the navigation and the report a member writes from it (feedback/, LIN-639). */

.help-wrap {
  display: grid;
}
.nav-foot .help-btn {
  box-sizing: border-box;
}
.help-menu .help-ext {
  color: var(--ink-muted);
}
.help-version {
  padding: 4px 8px 6px;
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- the report: a small form next to the Help button, the page stays in view ---- */

.fb-report {
  position: relative;
}
.fb-muted {
  margin: 0;
  color: var(--ink-muted);
  font-size: 12.5px;
}
.fb-report .ta {
  resize: vertical;
  min-height: 72px;
}
.fb-pre {
  box-sizing: border-box;
  max-height: 140px;
  margin: 4px 0 0;
  padding: 8px 10px;
  overflow: auto;
  border-radius: var(--radius-sm);
  background: var(--surface-hover);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

/* The screenshot, as wide as the form; a click shows it large. */
.fb-shot {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-top: 4px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--surface-hover);
  cursor: zoom-in;
}
.fb-shot:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.fb-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--surface);
}
.fb-shot .sk {
  display: block;
  width: 100%;
  height: 100%;
}
.fb-zoom {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 0;
  background: rgb(5 6 8 / 0.8);
  cursor: zoom-out;
}
.fb-zoom img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-dialog);
}

.fb-sent {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 40px 20px 44px;
  font-size: 15px;
}
.fb-sent-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--ink);
  color: var(--surface);
}

.fb-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-muted);
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.fb-link:hover {
  color: var(--ink);
}
.fb-link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

.fb-report.k-dialog {
  max-height: calc(100dvh - 16px);
  box-shadow: var(--shadow-dialog);
}
.fb-pop-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 8px 0 14px;
  font-size: 13.5px;
}
.fb-pop-head b {
  flex: 1;
}
.fb-pop-body {
  display: grid;
  gap: 10px;
  min-height: 0;
  padding: 8px 14px 10px;
  overflow: auto;
}
.fb-inline-parts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}
.fb-inline-part {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
}
.fb-inline-part .k-check {
  font-size: 12.5px;
}
.fb-pop-preview {
  min-width: 0;
}
.fb-pop-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--line);
}

/* ---- phones: a full-screen sheet with Send in view ---- */

@media (max-width: 560px) {
  .overlay:has(> .fb-report.k-dialog) {
    align-items: stretch;
    padding: 0;
  }
  .fb-report.k-dialog {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    max-width: none;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }
  .fb-report .fb-pop-body {
    flex: 1;
    align-content: start;
  }
  .fb-pop-foot {
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
}

/* Long lines (the browser line, a long path) wrap or scroll instead of widening the form. */
.fb-report .fb-pop-body {
  grid-template-columns: minmax(0, 1fr);
}