Skip to content

Commit bc316cb

Browse files
committed
🎨 refactor: MessageInputTextArea の max-height をカスタムプロパティに変更
1 parent 59eaba8 commit bc316cb

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/components/Main/MainView/MessageInput/MessageInputLeftControls.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
<template>
2-
<div
3-
:class="$style.outerContainer"
4-
:style="outerContainerStyle"
5-
>
2+
<div :class="$style.outerContainer" :style="outerContainerStyle">
63
<icon-button
74
v-if="showIsInputTextAreaExpandedButton"
85
:class="$style.button"

src/components/Main/MainView/MessageInput/MessageInputTextArea.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ const textAreaAutoSizeMaxHeight = computed(() => {
158158
const scollbarWidth = getScrollbarWidth()
159159
const textareaAutosizeStyle = computed(() => ({
160160
'--input-scrollbar-width': `${scollbarWidth}px`,
161-
'max-height': textAreaAutoSizeMaxHeight.value
161+
'--max-height': textAreaAutoSizeMaxHeight.value
162162
}))
163163
164164
const showIsInputTextAreaExpandedButton = defineModel<boolean>(
@@ -210,6 +210,7 @@ $vertical-padding: 8px;
210210
padding: $vertical-padding 16px;
211211
// 左から、余白、スタンプパレットボタン、余白、送信ボタン、スクロールバー
212212
padding-right: calc(8px + 24px + 8px + 24px + var(--input-scrollbar-width));
213+
max-height: var(--max-height);
213214
&[readonly] {
214215
@include color-ui-secondary-inactive;
215216
cursor: wait;

0 commit comments

Comments
 (0)