Unverified Commit 38754734 authored by KVOJJJin's avatar KVOJJJin Committed by GitHub

Fix:style of new line (#134)

parent b42cd38c
...@@ -43,4 +43,7 @@ ...@@ -43,4 +43,7 @@
background: #f9fafb center no-repeat url(../assets/Loading.svg); background: #f9fafb center no-repeat url(../assets/Loading.svg);
background-size: contain; background-size: contain;
} }
.fileContent {
white-space: pre-line;
}
\ No newline at end of file
...@@ -41,7 +41,7 @@ const PreviewItem: FC<IPreviewItemProps> = ({ ...@@ -41,7 +41,7 @@ const PreviewItem: FC<IPreviewItemProps> = ({
</div> </div>
</div> </div>
<div className='mt-2 max-h-[120px] line-clamp-6 overflow-hidden text-sm text-gray-800'> <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>
</div> </div>
) )
......
...@@ -45,6 +45,7 @@ ...@@ -45,6 +45,7 @@
} }
.segModalContent { .segModalContent {
@apply h-96 text-gray-800 text-base overflow-y-scroll; @apply h-96 text-gray-800 text-base overflow-y-scroll;
white-space: pre-line;
} }
.footer { .footer {
@apply flex items-center justify-between box-border border-t-gray-200 border-t-[0.5px] pt-3 mt-4; @apply flex items-center justify-between box-border border-t-gray-200 border-t-[0.5px] pt-3 mt-4;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment