BusinessForm.module.css 2.12 KB
.root {
  display: flex;
  flex-direction: column;
}

.field {
  min-width: 0;
}

.formItem {
  margin-bottom: 0;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  font-size: 14px;
  color: #1f1f1f;
}

.required {
  color: #d94841;
}

.controlWrap {
  min-width: 0;
}

.controlHolder {
  width: 100%;
  min-width: 0;
}

.controlHolder :global(.t-input),
.controlHolder :global(.t-input-number),
.controlHolder :global(.t-select),
.controlHolder :global(.t-textarea),
.controlHolder :global(.t-input__wrap),
.controlHolder :global(.t-select__wrap),
.controlHolder :global(.t-textarea__wrap) {
  width: 100%;
}

.helpText {
  margin-top: 6px;
  color: #a6a6a6;
  font-size: 12px;
  line-height: 1.5;
}

.error {
  margin-top: 6px;
  color: #d94841;
  font-size: 12px;
  line-height: 1.5;
}

.readonlyValue {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 12px;
  color: #1f1f1f;
}

.switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #fff;
}

.uploadWrap {
  min-width: 0;
}

.uploadWrap :global(.t-upload__card) {
  gap: 12px;
}

.uploadWrap :global(.t-upload__card-item) {
  width: 110px;
}

.uploadWrap :global(.t-upload__card-content),
.uploadWrap :global(.t-upload__card-container) {
  width: 110px;
  height: 110px;
}

.uploadWrap :global(.t-upload__card-mask) {
  background-color: rgba(0, 0, 0, 0.34);
}

.uploadWrap :global(.t-upload__card-name) {
  display: block;
  width: 110px;
  min-width: 0;
  white-space: nowrap;
  word-break: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uploadVideoCard {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #4b5563;
}

.uploadPreview {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  width: 160px;
  max-width: 100%;
}

.uploadPreviewName {
  max-width: 100%;
}

.uploadImage,
.uploadVideo {
  display: block;
  width: 160px;
  max-width: 100%;
  border-radius: 8px;
  background: #f3f4f6;
  object-fit: cover;
}

.uploadVideo {
  background: #111827;
}