feat: enhanced text wrapping and ant-input styling

This commit is contained in:
kangfenmao 2024-10-27 22:50:45 +08:00
parent d77c1ce2b4
commit 2b17319855
2 changed files with 8 additions and 1 deletions

View File

@ -189,7 +189,11 @@ body[os='windows'] {
} }
.text-nowrap { .text-nowrap {
white-space: nowrap; display: -webkit-box !important;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: normal;
word-wrap: break-word;
} }

View File

@ -398,6 +398,9 @@ const Textarea = styled(TextArea)`
overflow: auto; overflow: auto;
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
&.ant-input {
line-height: 1.4;
}
` `
const Toolbar = styled.div` const Toolbar = styled.div`