Skip to content

Commit 6e6a463

Browse files
[Bug] [Workspace]Fix workspace detail classname definition (#7986) (#8018)
(cherry picked from commit 95929a6) 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> (cherry picked from commit 67aa197) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent d7f422a commit 6e6a463

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

changelogs/fragments/7986.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
fix:
2+
- Fix workspace detail classname definition ([#7986](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/7986))
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
.customized-table thead {
1+
.workspace-detail-direct-query-expanded-table thead {
22
display: none;
33
}
44

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

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

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

17-
.customized-row > td:nth-child(2) {
17+
.workspace-detail-direct-query-expanded-row > td:nth-child(2) {
1818
padding-left: 25px;
1919
}

src/plugins/workspace/public/components/workspace_detail/data_source_connection_table.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ export const DataSourceConnectionTable = ({
123123
items={item?.relatedConnections ?? []}
124124
itemId="id"
125125
columns={baseColumns}
126-
className="customized-table"
126+
className="workspace-detail-direct-query-expanded-table"
127127
rowProps={{
128-
className: 'customized-row',
128+
className: 'workspace-detail-direct-query-expanded-row',
129129
}}
130130
/>
131131
);
@@ -295,6 +295,7 @@ export const DataSourceConnectionTable = ({
295295
isSelectable={true}
296296
itemIdToExpandedRowMap={itemIdToExpandedRowMap}
297297
isExpandable={true}
298+
className="workspace-detail-direct-query-table"
298299
pagination={{
299300
initialPageSize: 10,
300301
pageSizeOptions: [10, 20, 30],

0 commit comments

Comments
 (0)