Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Oct 6, 2023
1 parent 7bbccba commit 05495e7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion app/src/assets/scss/business/_custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion app/src/protyle/render/av/blockAttr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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">`;
Expand Down

0 comments on commit 05495e7

Please sign in to comment.