Skip to content

Commit

Permalink
fix some styling in the add-institution component
Browse files Browse the repository at this point in the history
  • Loading branch information
holdan-8 committed May 23, 2024
1 parent 5affcfc commit 1a2787f
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<div class="wrapper">

<section class="container" [ngClass]="formStatus">
<header>Institution Form</header>

Expand Down Expand Up @@ -110,7 +112,7 @@ <h4>Add Organization(s)</h4>
</form>
</section>

<div>
<div class="table-container">
<table mat-table [dataSource]="dataSource" class="mat-elevation-z8">

<!-- Name DE Column -->
Expand Down Expand Up @@ -172,4 +174,5 @@ <h4>Add Organization(s)</h4>
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
<tr mat-row *matRowDef="let row; columns: displayedColumns"></tr>
</table>
</div>
</div>
33 changes: 33 additions & 0 deletions frontend/src/app/add-institution/add-institution.component.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,38 @@
@import "../../styles/colors.scss";

/* Adjust container to be a flex container */
.wrapper {
display: flex;
flex-wrap: wrap;
gap: 20px;
}

/* Adjust the container and table sizes */
.container {
flex: 1 1 45%; /* Adjust the form to be 50% smaller */
max-width: 700px; /* Optional, based on your design */
}

.table-container {
flex: 1 1 45%; /* Adjust the table container to fit beside the form */
}



/* Responsive adjustments */
@media screen and (max-width: 1200px) {
.container, .table-container {
flex: 1 1 100%; /* Stack the form and table vertically on smaller screens */
}
}

/* Define a class for the Name_de column to control its width */
.mat-column-name_de {
width: 300px; /* Set the desired width */
max-width: 1000px; /* Ensure it doesn't grow larger */
word-wrap: break-word; /* Wrap text if it overflows */
}


.container {
position: relative;
Expand Down

0 comments on commit 1a2787f

Please sign in to comment.