Skip to content

Commit

Permalink
[Workspace] Fix new home page small screen display issues (#8554) (#8572
Browse files Browse the repository at this point in the history
)

* Fix small screen display issues



* Changeset file for PR #8554 created/updated

* revert



---------



(cherry picked from commit 0171068)

Signed-off-by: yubonluo <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Oct 12, 2024
1 parent 2a1e9be commit a32d197
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 23 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/8554.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fix:
- Fix new home page small screen display issues ([#8554](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8554))

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@
margin: auto;
padding-left: 48px;
padding-right: 48px;
width: 100%;
}
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,12 @@ export const WorkspaceInitial = ({ registeredUseCases$ }: WorkspaceInitialProps)
</EuiFlexItem>
<EuiSpacer size="l" />
<EuiFlexItem grow={false}>
<EuiFlexGroup direction="row" justifyContent="spaceBetween" alignItems="center">
<EuiFlexGroup
direction="row"
justifyContent="spaceBetween"
alignItems="center"
gutterSize="m"
>
<EuiFlexItem grow={false}>
<div style={{ display: 'flex', alignItems: 'center' }}>
<EuiIcon type="wsSelector" size="m" />
Expand All @@ -181,8 +186,8 @@ export const WorkspaceInitial = ({ registeredUseCases$ }: WorkspaceInitialProps)
<EuiFlexItem grow={false}>{isDashboardAdmin && createWorkspacePopover}</EuiFlexItem>
</EuiFlexGroup>
</EuiFlexItem>
<EuiFlexItem>
<EuiFlexGroup justifyContent="spaceBetween" gutterSize="m">
<EuiFlexItem grow={false}>
<EuiFlexGroup justifyContent="spaceBetween" gutterSize="m" className="eui-xScroll">
{useCaseCards}
</EuiFlexGroup>
</EuiFlexItem>
Expand Down Expand Up @@ -241,15 +246,15 @@ export const WorkspaceInitial = ({ registeredUseCases$ }: WorkspaceInitialProps)
return (
<EuiPage style={{ minHeight: '100vh' }}>
<EuiPageBody>
<EuiIcon type="logoOpenSearch" size="xl" />
<EuiIcon type="logoOpenSearch" size="xl" style={{ position: 'fixed' }} />
<EuiSpacer size="xl" />
<EuiSpacer size="l" />
<EuiFlexGroup
direction="column"
alignItems="center"
justifyContent="flexStart"
className="workspace-initial__flex-group-responsive"
>
<EuiFlexItem grow={false} style={{ width: '1264px' }}>
<EuiFlexItem grow={false} style={{ maxWidth: '1264px', width: '100%' }}>
{content}
</EuiFlexItem>
</EuiFlexGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export const WorkspaceUseCaseCard = ({
};

return (
<EuiSplitPanel.Outer style={{ height: '416px', minWidth: '235px' }}>
<EuiSplitPanel.Outer style={{ height: '416px', minWidth: '240px' }}>
<EuiSplitPanel.Inner
paddingSize="m"
grow={!hasWorkspaces}
Expand Down

0 comments on commit a32d197

Please sign in to comment.