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.

3.6 KB
Raw Blame
/* Settings › Assistant › Call emails (CallEmails.tsx) and the call view's "Emailed after the call" (EmailedAfterCall.tsx). */

/* One list of "which calls → who" in the card: a block for every call, for assigned calls and per topic, divided by
   hairlines like setting rows (no box around them: no cards in cards). */
.ce-blocks {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ce-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}
.ce-block + .ce-block {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.ce-block-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
}
.ce-block-title {
  flex: none;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
h3.ce-block-title {
  flex: 1;
}
.ce-rule-when {
  flex: 1;
  min-width: 0;
}
.ce-rule-error {
  margin: 0;
  font-size: 12px;
  color: var(--danger);
}
/* Label column (the same width in every block) and value column; a label stays on the first line when chips wrap. */
.ce-block-body {
  display: grid;
  grid-template-columns: minmax(64px, max-content) minmax(0, 1fr);
  align-items: start;
  gap: 8px 12px;
}
.ce-rule-label {
  font-size: 12px;
  line-height: 32px;
  white-space: nowrap;
  color: var(--ink-muted);
}
.ce-rule-assign {
  justify-self: start;
  min-width: 180px;
}
.ce-new {
  justify-self: start;
  margin-top: -2px;
  font-size: 12.5px;
  color: var(--ink-muted);
}
.ce-none {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--ink-muted);
}
@media (max-width: 560px) {
  /* Phone: label and remove on the first line, the topic field at full width under them. */
  .ce-block-head {
    flex-wrap: wrap;
    row-gap: 6px;
  }
  label.ce-block-title {
    flex: 1;
  }
  .ce-rule-when {
    order: 1;
    flex-basis: 100%;
  }
  .ce-block-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .ce-block-body > span:empty {
    display: none;
  }
  .ce-rule-label {
    line-height: 18px;
  }
}

/* Member chips with a remove button, and the picker to add one. */
.ce-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 32px;
}
.ce-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  height: 24px;
  padding: 0 8px 0 2px;
  border-radius: var(--radius-full);
  background: var(--surface-hover);
  font-size: 12.5px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ce-chip:has(.ce-chip-x) {
  padding-right: 2px;
}
.ce-chip-x {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
}
.ce-chip-x:hover {
  color: var(--ink);
  background: var(--line);
}
.ce-chip-x:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}
.ce-add {
  min-width: 160px;
}
/* The picker's list shows each member's name and email address on one line (listWidth). */
.ce-add .k-select-opt-l {
  overflow-wrap: normal;
}

/* Call view, side panel. */
.ce-sent {
  gap: 6px;
}
.ce-sent-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.ce-sent-head .mono {
  font-size: 11px;
  color: var(--ink-muted);
}
.ce-sent-line {
  margin: 0;
  font-size: 12.5px;
  line-height: 18px;
  color: var(--ink);
}
.ce-sent .help {
  line-height: 17px;
}
/* The "?" with the model's reason follows the last word, not on a line of its own. */
.ce-sent-line .k-help {
  margin-left: 4px;
  vertical-align: -3px;
}