Skip to content

Commit

Permalink
[master] refactor: refactor extensions management using DataTable (#4422
Browse files Browse the repository at this point in the history
)

* refactor: refactor extensions management using DataTable

Signed-off-by: donniean <[email protected]>

* refactor: simplify ExtensionsEmpty component and improve props handling

Signed-off-by: donniean <[email protected]>

* refactor: remove unused size property and comment out action buttons in Extensions component

Signed-off-by: donniean <[email protected]>

* refactor: add style to Extensions empty state for better layout

Signed-off-by: donniean <[email protected]>

* refactor: update column metadata in Extensions component for improved layout

Signed-off-by: donniean <[email protected]>

---------

Signed-off-by: donniean <[email protected]>
Co-authored-by: donniean <[email protected]>
  • Loading branch information
ks-ci-bot and donniean authored Jan 8, 2025
1 parent 6e66971 commit 2d42d2b
Show file tree
Hide file tree
Showing 8 changed files with 206 additions and 195 deletions.
1 change: 1 addition & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
],
"dependencies": {
"@jridgewell/resolve-uri": "^3.1.0",
"@tanstack/react-table": "^8.17.3",
"clean-deep": "^3.4.0",
"embla-carousel-react": "^8.0.0-rc11",
"file-saver": "^2.0.5",
Expand Down
24 changes: 24 additions & 0 deletions packages/core/src/components/GlobalStyles/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,30 @@ const GlobalStyles = createGlobalStyle`
}
}
}
.kube-table-wrapper {
padding: 0 12px 12px;
table.kube-table {
width: 100%;
}
table.kube-table--max-context {
width: max-content;
}
td.table-cell {
.field-content {
word-break: break-word;
}
.field-label {
display: -webkit-box;
overflow: hidden;
text-overflow: ellipsis;
-webkit-line-clamp: 3;
line-clamp: 3;
-webkit-box-orient: vertical;
white-space: unset;
}
}
}
`;

export default GlobalStyles;
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,14 @@ export const LoadingWrapper = styled.div`
background-color: #fff;
`;

export const TableWrapper = styled(Card)`
position: relative;
& > div {
padding: 0;
export const StyledCard = styled(Card)`
.kube-table-wrapper {
td.table-cell {
.field-label {
-webkit-line-clamp: 1;
line-clamp: 1;
}
}
}
`;

Expand Down
Loading

0 comments on commit 2d42d2b

Please sign in to comment.