-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
162 additions
and
51 deletions.
There are no files selected for viewing
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,50 @@ | ||
.root { | ||
display: flex; | ||
width: 100%; | ||
} | ||
.projectList { | ||
width: 100%; | ||
table-layout: fixed; | ||
padding: 10px; | ||
} | ||
.errorMessage { | ||
width: 100%; | ||
padding: 10px; | ||
} | ||
.projectList th { | ||
background: #d0d0d0; | ||
text-overflow: ellipsis; | ||
overflow: hidden; | ||
white-space: nowrap; | ||
} | ||
.projectList tr, | ||
td { | ||
width: 100%; | ||
text-overflow: ellipsis; | ||
overflow: hidden; | ||
white-space: nowrap; | ||
} | ||
.projectList tr:hover td { | ||
color: white; | ||
background-color: var(--global-color-accent--light); | ||
} | ||
.projectList tr:hover td button { | ||
color: white; | ||
} | ||
.mapColumn { | ||
width: 42%; | ||
} | ||
.projectColumn { | ||
width: 42%; | ||
} | ||
.buttonColumn { | ||
width: 16%; | ||
text-align: end; | ||
} | ||
.buttonColumn button { | ||
max-width: 100%; | ||
text-overflow: ellipsis; | ||
overflow: hidden; | ||
white-space: nowrap; | ||
justify-content: flex-start; | ||
} |
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
export { ProjectListing } from './ProjectListing'; | ||
export { default } from './ProjectListing'; |
12 changes: 12 additions & 0 deletions
12
react/src/components/utils/EmptyTablePlaceholder.module.css
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,12 @@ | ||
/* Table Placeholder */ | ||
.empty { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
.empty > :first-child { | ||
margin-top: 10px; | ||
padding: 50px; | ||
border: 1px solid var(--global-color-primary--dark); | ||
} |
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,25 @@ | ||
import { SectionMessage } from '@tacc/core-components'; | ||
import styles from './EmptyTablePlaceholder.module.css'; | ||
import React from 'react'; | ||
|
||
interface EmptyPlaceholderProps { | ||
children?: React.ReactNode; | ||
type: 'error' | 'warning' | 'info' | 'success'; | ||
} | ||
|
||
export const EmptyTablePlaceholder: React.FC<EmptyPlaceholderProps> = ({ | ||
children, | ||
type, | ||
}) => { | ||
return ( | ||
<div className={styles['empty']}> | ||
{children ? ( | ||
<SectionMessage type={type}>{children}</SectionMessage> | ||
) : ( | ||
<SectionMessage type={type}>No data available.</SectionMessage> | ||
)} | ||
</div> | ||
); | ||
}; | ||
|
||
export default EmptyTablePlaceholder; |
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 @@ | ||
export { default as EmptyTablePlaceholder } from './EmptyTablePlaceholder'; |
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
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
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
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