Skip to content

Commit

Permalink
[Bug] [Workspace]Fix workspace detail classname definition (opensearc…
Browse files Browse the repository at this point in the history
  • Loading branch information
yubonluo committed Sep 4, 2024
1 parent 7dedc58 commit 95929a6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/7986.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fix:
- Fix workspace detail classname definition ([#7986](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/7986))
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
.customized-table thead {
.workspace-detail-direct-query-expanded-table thead {
display: none;
}

[id^="row"][id$="expansion"] > td:first-child > div:first-child {
.workspace-detail-direct-query-table [id^="row"][id$="expansion"] > td:first-child > div:first-child {
padding: 0;
}

.customized-row:first-child > td {
.workspace-detail-direct-query-expanded-row:first-child > td {
border-top: 0;
}

.customized-row:last-child > td {
.workspace-detail-direct-query-expanded-row:last-child > td {
border-bottom: 0;
}

.customized-row > td:nth-child(2) {
.workspace-detail-direct-query-expanded-row > td:nth-child(2) {
padding-left: 25px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ export const DataSourceConnectionTable = ({
items={item?.relatedConnections ?? []}
itemId="id"
columns={baseColumns}
className="customized-table"
className="workspace-detail-direct-query-expanded-table"
rowProps={{
className: 'customized-row',
className: 'workspace-detail-direct-query-expanded-row',
}}
/>
);
Expand Down Expand Up @@ -295,6 +295,7 @@ export const DataSourceConnectionTable = ({
isSelectable={true}
itemIdToExpandedRowMap={itemIdToExpandedRowMap}
isExpandable={true}
className="workspace-detail-direct-query-table"
pagination={{
initialPageSize: 10,
pageSizeOptions: [10, 20, 30],
Expand Down

0 comments on commit 95929a6

Please sign in to comment.