Vanessa 2023-10-06 23:18:49 +08:00
parent 7bbccbae3b
commit 05495e7064
2 changed files with 7 additions and 2 deletions

View file

@ -27,10 +27,15 @@
}
}
.block__icons {
min-height: auto;
padding: 4px 8px;
}
.b3-text-field--text {
cursor: pointer;
transition: var(--b3-transition);
height: 34px;
min-height: 34px;
background-color: transparent;
&:hover {

View file

@ -9,7 +9,7 @@ export const genAVValueHTML = (value: IAVCellValue) => {
let html = "";
switch (value.type) {
case "text":
html = `<input value="${value.text.content}" class="b3-text-field b3-text-field--text fn__flex-1">`;
html = `<textarea rows="${value.text.content.split('\n').length}" class="b3-text-field b3-text-field--text fn__flex-1">${value.text.content}</textarea>`;
break;
case "number":
html = `<input value="${value.number.content}" type="number" class="b3-text-field b3-text-field--text fn__flex-1">`;