Skip to content

Commit

Permalink
Center "Could not load metadata" message on the screen
Browse files Browse the repository at this point in the history
Added a new CSS class to center an error message vertically and horizontally using Flexbox in the main component. Updated the HTML template to display the "Could not load metadata" message using this new styling. This enhances the user experience by making error messages more noticeable.
  • Loading branch information
Zerskk committed Dec 2, 2024
1 parent 5d4dd25 commit 58ed523
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
9 changes: 9 additions & 0 deletions archigator/src/app/main/main.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,15 @@
}
}

.center-message {
display: flex;
justify-content: center;
align-items: center;
height: 100vh; /* or a specific height */
font-size: 1.5em;
color: gray;
}


/*@media all and (max-width: 900px) {*/
/* .checkout-side {*/
Expand Down
6 changes: 6 additions & 0 deletions archigator/src/app/main/main.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,9 @@
</div>

</div>

<ng-template #noMetadata>
<div class="center-message">
Could not load metadata
</div>
</ng-template>

0 comments on commit 58ed523

Please sign in to comment.