Skip to content

Commit

Permalink
- Removes issue with width
Browse files Browse the repository at this point in the history
- Adds width for error message
  • Loading branch information
sophia-massie committed Oct 30, 2024
1 parent dc21d68 commit d9b2607
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion react/src/components/Projects/ProjectListing.module.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
.root {
display: flex;
justify-content: center;
width: 100%;
}
.projectList {
width: 100%;
overflow-y: scroll;
padding: 10px;
}
.errorMessage {
width: 100%;
padding: 10px;
}
.projectList th {
background: #d0d0d0;
max-width: fit-content;
Expand Down
2 changes: 2 additions & 0 deletions react/src/components/Projects/ProjectListing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const ProjectListing: React.FC = () => {
if (isError) {
return (
<div className={styles.root}>
<div className={styles.errorMessage}>
<SectionMessage type="error">

Check failure on line 32 in react/src/components/Projects/ProjectListing.tsx

View workflow job for this annotation

GitHub Actions / React-Linting

Insert `··`
There was an error gathering your maps.{' '}

Check failure on line 33 in react/src/components/Projects/ProjectListing.tsx

View workflow job for this annotation

GitHub Actions / React-Linting

Insert `··`
{/*@ts-ignore: Suppress error typing issues*/}

Check failure on line 34 in react/src/components/Projects/ProjectListing.tsx

View workflow job for this annotation

GitHub Actions / React-Linting

Insert `··`

Check failure on line 34 in react/src/components/Projects/ProjectListing.tsx

View workflow job for this annotation

GitHub Actions / React-Linting

Do not use "@ts-ignore" because it alters compilation errors
Expand All @@ -41,6 +42,7 @@ const ProjectListing: React.FC = () => {
Click here to submit a ticket to DesignSafe.
</a>
</SectionMessage>
</div>
</div>
);
}
Expand Down

0 comments on commit d9b2607

Please sign in to comment.