Skip to content

Commit

Permalink
Put footer in the same panel with content to match UX design
Browse files Browse the repository at this point in the history
Signed-off-by: Heng Qian <[email protected]>
  • Loading branch information
qianheng-aws committed Aug 30, 2024
1 parent 21e2278 commit 662923b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
14 changes: 4 additions & 10 deletions public/components/incontext_insight/generate_popover_body.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,18 +141,13 @@ export const GeneratePopoverBody: React.FC<{
const content = showInsight && insightAvailable ? insight : summary;
return content ? (
<>
<EuiPanel
className="incontextInsightGeneratePopoverContent"
paddingSize="s"
hasBorder
hasShadow={false}
color="subdued"
>
<EuiText size="s">
<EuiPanel paddingSize="s" hasBorder hasShadow={false} color="subdued">
<EuiText className="incontextInsightGeneratePopoverContent" size="s">
<EuiMarkdownFormat>{content}</EuiMarkdownFormat>
</EuiText>
<EuiSpacer size={'xs'} />
{renderInnerFooter()}
</EuiPanel>
<EuiSpacer size={'xs'} />
</>
) : (
<EuiLoadingContent aria-label="loading_content" />
Expand Down Expand Up @@ -232,7 +227,6 @@ export const GeneratePopoverBody: React.FC<{
<>
{renderInnerTitle()}
{renderContent()}
{renderInnerFooter()}
</>
);
};
3 changes: 1 addition & 2 deletions public/components/incontext_insight/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,7 @@

.incontextInsightGeneratePopoverFooter{
padding-block: 0 !important;
margin-top: 0 !important;
margin-bottom: 0 !important;
margin: 0 !important;
border: none;
}

Expand Down

0 comments on commit 662923b

Please sign in to comment.