Skip to content

Commit c86f654

Browse files
committed
fix lint
1 parent 47c8a3f commit c86f654

File tree

1 file changed

+1
-2
lines changed
  • packages/spright-components/src/chat/input

1 file changed

+1
-2
lines changed

packages/spright-components/src/chat/input/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ export class ChatInput extends mixinErrorPattern(FoundationElement) {
6060
@observable
6161
public scrollbarWidth = -1;
6262

63-
private static readonly maxContentLines = 6;
6463
private resizeObserver?: ResizeObserver;
6564
private updateScrollbarWidthQueued = false;
6665

@@ -199,7 +198,7 @@ export class ChatInput extends mixinErrorPattern(FoundationElement) {
199198
const lineHeight = parseFloat(computedStyle.lineHeight);
200199
const paddingTop = parseFloat(computedStyle.paddingTop);
201200
const paddingBottom = parseFloat(computedStyle.paddingBottom);
202-
const maxHeight = ChatInput.maxContentLines * lineHeight
201+
const maxHeight = lineHeight * 6
203202
+ paddingTop
204203
+ paddingBottom;
205204

0 commit comments

Comments
 (0)