🎨 Use HTML attributes data-wrap to set the cell wrapping style (#9814)

This commit is contained in:
Yingyi / 颖逸 2023-12-05 22:41:12 +08:00 committed by GitHub
parent 7c69313a23
commit 1b89dc0ee2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 8 deletions

View file

@ -95,6 +95,10 @@
cursor: pointer;
}
&__body {
float: left;
}
&__row {
display: flex;
border-bottom: 1px solid var(--b3-theme-surface-lighter);
@ -244,6 +248,14 @@
top: 5.5px;
}
&[data-wrap="true"] {
white-space: pre-wrap;
}
&[data-wrap="false"] {
white-space: nowrap;
}
&.dragover__right {
border-right-color: var(--b3-theme-primary-lighter);
}