Просмотр исходного кода

Fix:style of new line (#134)

tags/0.2.2
KVOJJJin 2 лет назад
Родитель
Сommit
38754734a2
Аккаунт пользователя с таким Email не найден

+ 3
- 0
web/app/components/datasets/create/file-preview/index.module.css Просмотреть файл

@@ -43,4 +43,7 @@
background: #f9fafb center no-repeat url(../assets/Loading.svg);
background-size: contain;
}
.fileContent {
white-space: pre-line;
}

+ 1
- 1
web/app/components/datasets/create/step-two/preview-item/index.tsx Просмотреть файл

@@ -41,7 +41,7 @@ const PreviewItem: FC<IPreviewItemProps> = ({
</div>
</div>
<div className='mt-2 max-h-[120px] line-clamp-6 overflow-hidden text-sm text-gray-800'>
{content}
<div style={{ whiteSpace: 'pre-line'}}>{content}</div>
</div>
</div>
)

+ 1
- 0
web/app/components/datasets/documents/detail/completed/style.module.css Просмотреть файл

@@ -45,6 +45,7 @@
}
.segModalContent {
@apply h-96 text-gray-800 text-base overflow-y-scroll;
white-space: pre-line;
}
.footer {
@apply flex items-center justify-between box-border border-t-gray-200 border-t-[0.5px] pt-3 mt-4;

Загрузка…
Отмена
Сохранить