Skip to content

LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows

3.6 KB
Raw Blame
/* Styles for ConfigureConnectorModal */

.conn-modal-body {
  height: 80vh; /* 80% of viewport height */
  max-height: 800px; /* Cap at 800px for large screens */
  min-height: 400px; /* Minimum height for usability */
  display: flex;
  flex-direction: column;
  overflow-y: hidden;
  overflow-x: hidden;
}

.conn-modal-hitl-body {
  overflow-y: auto;
}

.conn-modal-row {
  flex: 1;
  overflow-y: hidden;
  border: 1px solid #d4d4d4;
  border-radius: 8px;
}

.conn-modal-col {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  border-right: 1px solid #f0f0f0;
}

.conn-modal-col-left {
  background-color: var(--muted);
}

.conn-modal-col .ant-tabs-nav {
  margin: 0px;
}

.conn-modal-menu {
  height: 100%;
  overflow-y: auto;
  background-color: transparent;
}

.conn-modal-form-pad-right {
  padding: 0px 8px 0px 8px;
  border-right: 1px solid #d4d4d4;
}

.conn-modal-form-pad-left {
  padding: 4px 20px 0px 20px;
}

.form-right {
  padding: 8px 8px 0px 0px;
}

/* Styles for connector selection dropdown */
.connector-selection-section {
  padding: 16px 8px;
}

.connector-selection-label {
  display: block;
  margin-bottom: 8px;
}

.connector-selection-dropdown {
  width: 100%;
}

.connector-selection-dropdown .ant-select-selector {
  height: 40px;
  padding: 4px 11px 4px 8px;
  display: flex;
  align-items: center;
}

.connector-selection-dropdown .ant-select-arrow {
  right: 8px;
}

.connector-dropdown-add-new {
  border-top: 1px solid #f0f0f0;
  padding: 8px 12px;
  cursor: pointer;
  background-color: #fafafa;
  transition: background-color 0.2s;

  /* Button reset styles */
  border-left: none;
  border-right: none;
  border-bottom: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: inherit;
}

.connector-dropdown-add-new:hover {
  background-color: #f0f0f0;
}

.connector-dropdown-add-new:focus {
  outline: 2px solid var(--ring);
  outline-offset: -2px;
  background-color: #f0f0f0;
}

.connector-dropdown-menu-container {
  max-height: 200px;
  overflow-y: auto;
}

.conn-modal-fs-config {
  overflow-y: auto;
}

.conn-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.file-browser-section {
  padding-top: 16px;
  height: 100%;
}

.file-browser-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.file-browser-header button {
  margin-right: 16px;
}

.file-browser-content {
  flex: 1;
}

.field-description {
  display: block;
  font-size: 12px;
}

/* Placeholder styles for empty state */
.connector-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 400px;
  color: #8c8c8c;
}

.connector-placeholder-icon {
  font-size: 48px;
  /* width/height, not font-size alone: antd shipped an icon FONT (sized by
   * font-size); lucide ships SVGs, which ignore it and fall back to their
   * own 24px default. font-size is kept for any text in the same element. */
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: #bfbfbf;
}

.connector-placeholder-text {
  font-size: 16px;
  color: #8c8c8c;
  text-align: center;
}

/* Responsive adjustments for different screen sizes */
@media (max-height: 900px) {
  .conn-modal-body {
    height: 75vh; /* Reduce height on smaller screens */
  }
}

@media (max-height: 768px) {
  .conn-modal-body {
    height: 60vh; /* Further reduce for very small screens */
    min-height: 350px; /* Adjust minimum height */
  }
}

@media (max-width: 1200px) {
  .file-browser-section {
    padding: 12px;
  }

  .file-browser-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .file-browser-content {
    width: 100%;
  }
}