-
Notifications
You must be signed in to change notification settings - Fork 923
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add right sidebar to workspace creator
Signed-off-by: Lin Wang <[email protected]>
- Loading branch information
Showing
11 changed files
with
732 additions
and
114 deletions.
There are no files selected for viewing
66 changes: 66 additions & 0 deletions
66
...space/public/components/workspace_creator/__snapshots__/workspace_faq_panel.test.tsx.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
src/plugins/workspace/public/components/workspace_creator/utils.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
export const RIGHT_SIDEBAR_SCROLL_KEY = 'data-right-sidebar-scroll'; | ||
|
||
export enum RightSidebarScrollField { | ||
Name = 'name', | ||
Description = 'description', | ||
Color = 'color', | ||
UseCase = 'useCase', | ||
DataSource = 'dataSource', | ||
Member = 'member', | ||
} | ||
|
||
export const generateRightSidebarScrollProps = (key: RightSidebarScrollField) => { | ||
return { [RIGHT_SIDEBAR_SCROLL_KEY]: key }; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
src/plugins/workspace/public/components/workspace_creator/workspace_creator_form.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
$workspaceCreateRightSideBarTopOffset: 116px; | ||
$workspaceCreateRightSideBarBottomOffset: 100px; | ||
|
||
.workspaceCreateRightSidebar { | ||
position: sticky; | ||
top: $workspaceCreateRightSideBarTopOffset; | ||
max-height: calc(100vh - $workspaceCreateRightSideBarTopOffset - $workspaceCreateRightSideBarBottomOffset); | ||
overflow: hidden; | ||
display: flex; | ||
flex-direction: column; | ||
width: 280px; | ||
|
||
@include ouiBreakpoint("xs","s") { | ||
position: static; | ||
width: 100%; | ||
} | ||
} | ||
|
||
.workspaceCreateRightSideBarContentWrapper { | ||
overflow-y: scroll; | ||
|
||
@include ouiBreakpoint("xs","s") { | ||
overflow: visible; | ||
} | ||
} | ||
|
||
.workspaceCreateRightSideBarActionsWrapper { | ||
padding: $ouiSizeM; | ||
border-radius: $ouiSizeM; | ||
background: $ouiColorEmptyShade; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.