Skip to content

Commit

Permalink
🎨 refactor: MessageInputTextArea の max-height をカスタムプロパティに変更
Browse files Browse the repository at this point in the history
  • Loading branch information
reiroop committed Feb 3, 2025
1 parent 59eaba8 commit bc316cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<template>
<div
:class="$style.outerContainer"
:style="outerContainerStyle"
>
<div :class="$style.outerContainer" :style="outerContainerStyle">

Check warning on line 2 in src/components/Main/MainView/MessageInput/MessageInputLeftControls.vue

View check run for this annotation

Codecov / codecov/patch

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

Added line #L2 was not covered by tests
<icon-button
v-if="showIsInputTextAreaExpandedButton"

Check warning on line 4 in src/components/Main/MainView/MessageInput/MessageInputLeftControls.vue

View check run for this annotation

Codecov / codecov/patch

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

Added line #L4 was not covered by tests
:class="$style.button"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ const textAreaAutoSizeMaxHeight = computed(() => {
const scollbarWidth = getScrollbarWidth()
const textareaAutosizeStyle = computed(() => ({
'--input-scrollbar-width': `${scollbarWidth}px`,
'max-height': textAreaAutoSizeMaxHeight.value
'--max-height': textAreaAutoSizeMaxHeight.value
}))

Check warning on line 162 in src/components/Main/MainView/MessageInput/MessageInputTextArea.vue

View check run for this annotation

Codecov / codecov/patch

src/components/Main/MainView/MessageInput/MessageInputTextArea.vue#L159-L162

Added lines #L159 - L162 were not covered by tests
const showIsInputTextAreaExpandedButton = defineModel<boolean>(
Expand Down Expand Up @@ -210,6 +210,7 @@ $vertical-padding: 8px;
padding: $vertical-padding 16px;
// 左から、余白、スタンプパレットボタン、余白、送信ボタン、スクロールバー
padding-right: calc(8px + 24px + 8px + 24px + var(--input-scrollbar-width));
max-height: var(--max-height);
&[readonly] {
@include color-ui-secondary-inactive;
cursor: wait;
Expand Down

0 comments on commit bc316cb

Please sign in to comment.