Skip to content

Commit

Permalink
[Feature] Logs UI update (#2092)
Browse files Browse the repository at this point in the history
* Ui updates to logs

Signed-off-by: Adam Tackett <[email protected]>

* update test and snapshot

Signed-off-by: Adam Tackett <[email protected]>

* remove actions popover

Signed-off-by: Adam Tackett <[email protected]>

---------

Signed-off-by: Adam Tackett <[email protected]>
Co-authored-by: Adam Tackett <[email protected]>
  • Loading branch information
TackAdam and Adam Tackett authored Aug 27, 2024
1 parent 1e484c6 commit a9c3ea1
Show file tree
Hide file tree
Showing 6 changed files with 1,534 additions and 1,511 deletions.
11 changes: 9 additions & 2 deletions public/components/common/search/search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -222,12 +222,14 @@ export const Search = (props: any) => {

const languagePopOverItems = [
<EuiContextMenuItem
size="s"
key={QUERY_LANGUAGE.SQL}
onClick={() => handleQueryLanguageChange(QUERY_LANGUAGE.PPL)}
>
PPL
</EuiContextMenuItem>,
<EuiContextMenuItem
size="s"
key={QUERY_LANGUAGE.PPL}
onClick={() => handleQueryLanguageChange(QUERY_LANGUAGE.DQL)}
>
Expand Down Expand Up @@ -323,7 +325,12 @@ export const Search = (props: any) => {
};

const languagePopOverButton = (
<EuiSmallButton iconType="arrowDown" iconSide="right" onClick={onLanguagePopoverClick} color="text">
<EuiSmallButton
iconType="arrowDown"
iconSide="right"
onClick={onLanguagePopoverClick}
color="text"
>
{queryLang}
</EuiSmallButton>
);
Expand Down Expand Up @@ -357,7 +364,7 @@ export const Search = (props: any) => {
panelPaddingSize="none"
anchorPosition="downLeft"
>
<EuiContextMenuPanel size="m" items={languagePopOverItems} />
<EuiContextMenuPanel size="s" items={languagePopOverItems} />
</EuiPopover>
</EuiFlexItem>
<EuiFlexItem grow={false}>
Expand Down
Loading

0 comments on commit a9c3ea1

Please sign in to comment.