Skip to content

Commit

Permalink
Use EuiCompressedField*
Browse files Browse the repository at this point in the history
Signed-off-by: Miki <[email protected]>
  • Loading branch information
AMoo-Miki committed Aug 17, 2024
1 parent 3deeec5 commit 869d35e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions public/components/edit_conversation_name_modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import React, { useCallback, useRef } from 'react';

import { EuiConfirmModal, EuiFieldText, EuiSpacer, EuiText } from '@elastic/eui';
import { EuiConfirmModal, EuiCompressedFieldText, EuiSpacer, EuiText } from '@elastic/eui';
import { useCore } from '../contexts/core_context';
import { usePatchConversation } from '../hooks';

Expand Down Expand Up @@ -65,7 +65,7 @@ export const EditConversationNameModal = ({
<p>Please enter a new name for your conversation.</p>
</EuiText>
<EuiSpacer size="xs" />
<EuiFieldText
<EuiCompressedFieldText
inputRef={titleInputRef}
defaultValue={defaultTitle}
aria-label="Conversation name input"
Expand Down
4 changes: 2 additions & 2 deletions public/components/incontext_insight/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { i18n } from '@osd/i18n';
import {
EuiWrappingPopover,
EuiSmallButton,
EuiFieldText,
EuiCompressedFieldText,
EuiFlexGroup,
EuiFlexItem,
EuiCompressedFormRow,
Expand Down Expand Up @@ -203,7 +203,7 @@ export const IncontextInsight = ({ children, httpSetup }: IncontextInsightProps)
<EuiFlexGroup gutterSize="xs">
<EuiFlexItem grow={6}>
<EuiCompressedFormRow>
<EuiFieldText
<EuiCompressedFieldText
placeholder="Ask a question"
value={userQuestion}
autoFocus
Expand Down
4 changes: 2 additions & 2 deletions public/components/notebook/notebook_name_modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
EuiModalBody,
EuiModalFooter,
EuiModalHeader,
EuiFieldText,
EuiCompressedFieldText,
EuiModalHeaderTitle,
} from '@elastic/eui';
import React, { useState, useCallback } from 'react';
Expand Down Expand Up @@ -72,7 +72,7 @@ export const NotebookNameModal = ({ onClose, saveChat }: NotebookNameModalProps)

<EuiModalBody>
<EuiCompressedFormRow label="Please enter a name for your notebook.">
<EuiFieldText
<EuiCompressedFieldText
value={name}
onChange={(e) => setName(e.target.value)}
aria-label="Notebook name input"
Expand Down
4 changes: 2 additions & 2 deletions public/tabs/history/chat_history_search_list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import {
EuiFieldSearch,
EuiCompressedFieldSearch,
EuiFieldSearchProps,
EuiPanel,
EuiSpacer,
Expand Down Expand Up @@ -81,7 +81,7 @@ export const ChatHistorySearchList = ({
);
return (
<>
<EuiFieldSearch
<EuiCompressedFieldSearch
placeholder="Search by conversation name"
value={search}
onChange={onSearchChange}
Expand Down

0 comments on commit 869d35e

Please sign in to comment.